OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 const std::string& alias_name) OVERRIDE; | 116 const std::string& alias_name) OVERRIDE; |
117 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 117 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
118 int child_process_id) OVERRIDE; | 118 int child_process_id) OVERRIDE; |
119 virtual std::string GetApplicationLocale() OVERRIDE; | 119 virtual std::string GetApplicationLocale() OVERRIDE; |
120 virtual std::string GetAcceptLangs( | 120 virtual std::string GetAcceptLangs( |
121 content::BrowserContext* context) OVERRIDE; | 121 content::BrowserContext* context) OVERRIDE; |
122 virtual const gfx::ImageSkia* GetDefaultFavicon() OVERRIDE; | 122 virtual const gfx::ImageSkia* GetDefaultFavicon() OVERRIDE; |
123 virtual bool AllowAppCache(const GURL& manifest_url, | 123 virtual bool AllowAppCache(const GURL& manifest_url, |
124 const GURL& first_party, | 124 const GURL& first_party, |
125 content::ResourceContext* context) OVERRIDE; | 125 content::ResourceContext* context) OVERRIDE; |
| 126 virtual bool AllowServiceWorker(const GURL& scope, |
| 127 const GURL& first_party, |
| 128 content::ResourceContext* context) OVERRIDE; |
126 virtual bool AllowGetCookie(const GURL& url, | 129 virtual bool AllowGetCookie(const GURL& url, |
127 const GURL& first_party, | 130 const GURL& first_party, |
128 const net::CookieList& cookie_list, | 131 const net::CookieList& cookie_list, |
129 content::ResourceContext* context, | 132 content::ResourceContext* context, |
130 int render_process_id, | 133 int render_process_id, |
131 int render_frame_id) OVERRIDE; | 134 int render_frame_id) OVERRIDE; |
132 virtual bool AllowSetCookie(const GURL& url, | 135 virtual bool AllowSetCookie(const GURL& url, |
133 const GURL& first_party, | 136 const GURL& first_party, |
134 const std::string& cookie_line, | 137 const std::string& cookie_line, |
135 content::ResourceContext* context, | 138 content::ResourceContext* context, |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 355 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
353 | 356 |
354 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 357 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
355 | 358 |
356 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 359 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
357 }; | 360 }; |
358 | 361 |
359 } // namespace chrome | 362 } // namespace chrome |
360 | 363 |
361 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 364 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |