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 | 29 |
| 30 // TODO |
| 31 // void GetTemporaryStorageConfiguration( |
| 32 // content::BrowserContext* context, |
| 33 // const base::FilePath& partition_path, bool is_incognito, |
| 34 // const storage::TemporaryStorageConfigurationCallback& callback)override; |
| 35 |
30 private: | 36 private: |
31 BrowserMainParts* browser_main_parts_ = nullptr; | 37 BrowserMainParts* browser_main_parts_ = nullptr; |
32 | 38 |
33 DISALLOW_COPY_AND_ASSIGN(ContentBrowserClient); | 39 DISALLOW_COPY_AND_ASSIGN(ContentBrowserClient); |
34 }; | 40 }; |
35 | 41 |
36 } // namespace navigation | 42 } // namespace navigation |
37 | 43 |
38 #endif // SERVICES_NAVIGATION_CONTENT_CLIENT_CONTENT_BROWSER_CLIENT_H_ | 44 #endif // SERVICES_NAVIGATION_CONTENT_CLIENT_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |