OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_ |
6 #define UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_ | 6 #define UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 | 12 |
13 class ViewsContentClient; | 13 class ViewsContentClient; |
14 class ViewsContentClientMainParts; | 14 class ViewsContentClientMainParts; |
15 | 15 |
16 class ViewsContentBrowserClient : public content::ContentBrowserClient { | 16 class ViewsContentBrowserClient : public content::ContentBrowserClient { |
17 public: | 17 public: |
18 explicit ViewsContentBrowserClient( | 18 explicit ViewsContentBrowserClient( |
19 ViewsContentClient* views_content_client); | 19 ViewsContentClient* views_content_client); |
20 ~ViewsContentBrowserClient() override; | 20 ~ViewsContentBrowserClient() override; |
21 | 21 |
22 // content::ContentBrowserClient: | 22 // content::ContentBrowserClient: |
23 content::BrowserMainParts* CreateBrowserMainParts( | 23 content::BrowserMainParts* CreateBrowserMainParts( |
24 const content::MainFunctionParams& parameters) override; | 24 const content::MainFunctionParams& parameters) override; |
| 25 void GetQuotaSettings( |
| 26 content::BrowserContext* context, |
| 27 const base::FilePath& partition_path, |
| 28 bool is_incognito, |
| 29 const storage::OptionalQuotaSettingsCallback& callback) override; |
25 | 30 |
26 private: | 31 private: |
27 ViewsContentClientMainParts* views_content_main_parts_; | 32 ViewsContentClientMainParts* views_content_main_parts_; |
28 ViewsContentClient* views_content_client_; | 33 ViewsContentClient* views_content_client_; |
29 | 34 |
30 DISALLOW_COPY_AND_ASSIGN(ViewsContentBrowserClient); | 35 DISALLOW_COPY_AND_ASSIGN(ViewsContentBrowserClient); |
31 }; | 36 }; |
32 | 37 |
33 } // namespace ui | 38 } // namespace ui |
34 | 39 |
35 #endif // UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_ | 40 #endif // UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |