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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 std::string* partition_domain, | 55 std::string* partition_domain, |
56 std::string* partition_name, | 56 std::string* partition_name, |
57 bool* in_memory) OVERRIDE; | 57 bool* in_memory) OVERRIDE; |
58 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( | 58 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( |
59 content::WebContents* web_contents) OVERRIDE; | 59 content::WebContents* web_contents) OVERRIDE; |
60 virtual void RenderViewHostCreated( | 60 virtual void RenderViewHostCreated( |
61 content::RenderViewHost* render_view_host) OVERRIDE; | 61 content::RenderViewHost* render_view_host) OVERRIDE; |
62 virtual void GuestWebContentsCreated( | 62 virtual void GuestWebContentsCreated( |
63 content::WebContents* guest_web_contents, | 63 content::WebContents* guest_web_contents, |
64 content::WebContents* embedder_web_contents) OVERRIDE; | 64 content::WebContents* embedder_web_contents) OVERRIDE; |
| 65 virtual void GuestWebContentsDestroyed( |
| 66 content::WebContents* guest_web_contents, |
| 67 content::WebContents* embedder_web_contents) OVERRIDE; |
65 virtual void RenderProcessHostCreated( | 68 virtual void RenderProcessHostCreated( |
66 content::RenderProcessHost* host) OVERRIDE; | 69 content::RenderProcessHost* host) OVERRIDE; |
67 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, | 70 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, |
68 const GURL& effective_url) OVERRIDE; | 71 const GURL& effective_url) OVERRIDE; |
69 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 72 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
70 const GURL& url) OVERRIDE; | 73 const GURL& url) OVERRIDE; |
71 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 74 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
72 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, | 75 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, |
73 const GURL& url) OVERRIDE; | 76 const GURL& url) OVERRIDE; |
74 virtual bool ShouldTryToUseExistingProcessHost( | 77 virtual bool ShouldTryToUseExistingProcessHost( |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 #endif | 230 #endif |
228 | 231 |
229 // Notification that the application locale has changed. This allows us to | 232 // Notification that the application locale has changed. This allows us to |
230 // update our I/O thread cache of this value. | 233 // update our I/O thread cache of this value. |
231 void SetApplicationLocale(const std::string& locale); | 234 void SetApplicationLocale(const std::string& locale); |
232 | 235 |
233 private: | 236 private: |
234 // Sets io_thread_application_locale_ to the given value. | 237 // Sets io_thread_application_locale_ to the given value. |
235 void SetApplicationLocaleOnIOThread(const std::string& locale); | 238 void SetApplicationLocaleOnIOThread(const std::string& locale); |
236 | 239 |
| 240 void RemoveWebViewEventListenersOnIOThread(void* profile, |
| 241 const std::string& extension_id, |
| 242 int embedder_process_id, |
| 243 int embedder_routing_id, |
| 244 int web_view_instance_id); |
237 // Set of origins that can use TCP/UDP private APIs from NaCl. | 245 // Set of origins that can use TCP/UDP private APIs from NaCl. |
238 std::set<std::string> allowed_socket_origins_; | 246 std::set<std::string> allowed_socket_origins_; |
239 | 247 |
240 // Cached version of the locale so we can return the locale on the I/O | 248 // Cached version of the locale so we can return the locale on the I/O |
241 // thread. | 249 // thread. |
242 std::string io_thread_application_locale_; | 250 std::string io_thread_application_locale_; |
243 | 251 |
244 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 252 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
245 }; | 253 }; |
246 | 254 |
247 } // namespace chrome | 255 } // namespace chrome |
248 | 256 |
249 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 257 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |