-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #403 from brave/stp
STP
- Loading branch information
Showing
29 changed files
with
1,324 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "brave/browser/content_settings/brave_cookie_settings_factory.h" | ||
|
||
#include "brave/components/content_settings/core/browser/brave_cookie_settings.h" | ||
#include "content/public/browser/browser_thread.h" | ||
|
||
// static | ||
scoped_refptr<content_settings::BraveCookieSettings> | ||
BraveCookieSettingsFactory::GetForProfile(Profile* profile) { | ||
return static_cast<content_settings::BraveCookieSettings*>( | ||
CookieSettingsFactory::GetForProfile(profile).get()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVE_BROWSER_CONTENT_SETTINGS_BRAVE_COOKIE_SETTINGS_FACTORY_H_ | ||
#define BRAVE_BROWSER_CONTENT_SETTINGS_BRAVE_COOKIE_SETTINGS_FACTORY_H_ | ||
|
||
#include <string> | ||
|
||
#include "chrome/browser/content_settings/cookie_settings_factory.h" | ||
|
||
namespace content_settings { | ||
class BraveCookieSettings; | ||
} | ||
|
||
class Profile; | ||
|
||
class BraveCookieSettingsFactory : public CookieSettingsFactory { | ||
public: | ||
static scoped_refptr<content_settings::BraveCookieSettings> GetForProfile( | ||
Profile* profile); | ||
|
||
private: | ||
friend struct base::DefaultSingletonTraits<BraveCookieSettingsFactory>; | ||
|
||
BraveCookieSettingsFactory(); | ||
~BraveCookieSettingsFactory() override; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(BraveCookieSettingsFactory); | ||
}; | ||
|
||
#endif // BRAVE_BROWSER_CONTENT_SETTINGS_BRAVE_COOKIE_SETTINGS_FACTORY_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.