| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SERVICES_NAVIGATION_CONTENT_CLIENT_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef SERVICES_NAVIGATION_CONTENT_CLIENT_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define SERVICES_NAVIGATION_CONTENT_CLIENT_CONTENT_BROWSER_CLIENT_H_ | 6 #define SERVICES_NAVIGATION_CONTENT_CLIENT_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "content/public/browser/content_browser_client.h" | 12 #include "content/public/browser/content_browser_client.h" |
| 13 | 13 |
| 14 namespace navigation { | 14 namespace navigation { |
| 15 | 15 |
| 16 class BrowserMainParts; | 16 class BrowserMainParts; |
| 17 | 17 |
| 18 class ContentBrowserClient : public content::ContentBrowserClient { | 18 class ContentBrowserClient : public content::ContentBrowserClient { |
| 19 public: | 19 public: |
| 20 ContentBrowserClient(); | 20 ContentBrowserClient(); |
| 21 ~ContentBrowserClient() override; | 21 ~ContentBrowserClient() override; |
| 22 | 22 |
| 23 // Overridden from content::ContentBrowserClient: | 23 // Overridden from content::ContentBrowserClient: |
| 24 content::BrowserMainParts* CreateBrowserMainParts( | 24 content::BrowserMainParts* CreateBrowserMainParts( |
| 25 const content::MainFunctionParams& parameters) override; | 25 const content::MainFunctionParams& parameters) override; |
| 26 std::string GetServiceUserIdForBrowserContext( | 26 std::string GetServiceUserIdForBrowserContext( |
| 27 content::BrowserContext* browser_context) override; | 27 content::BrowserContext* browser_context) override; |
| 28 void RegisterInProcessServices(StaticServiceMap* services) override; | 28 void RegisterInProcessServices(StaticServiceMap* services) override; |
| 29 void GetQuotaSettings( |
| 30 content::BrowserContext* context, |
| 31 const base::FilePath& partition_path, |
| 32 bool is_incognito, |
| 33 const storage::OptionalQuotaSettingsCallback& callback) override; |
| 29 | 34 |
| 30 private: | 35 private: |
| 31 BrowserMainParts* browser_main_parts_ = nullptr; | 36 BrowserMainParts* browser_main_parts_ = nullptr; |
| 32 | 37 |
| 33 DISALLOW_COPY_AND_ASSIGN(ContentBrowserClient); | 38 DISALLOW_COPY_AND_ASSIGN(ContentBrowserClient); |
| 34 }; | 39 }; |
| 35 | 40 |
| 36 } // namespace navigation | 41 } // namespace navigation |
| 37 | 42 |
| 38 #endif // SERVICES_NAVIGATION_CONTENT_CLIENT_CONTENT_BROWSER_CLIENT_H_ | 43 #endif // SERVICES_NAVIGATION_CONTENT_CLIENT_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |