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 CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual std::string GetCanonicalEncodingNameByAliasName( | 49 virtual std::string GetCanonicalEncodingNameByAliasName( |
50 const std::string& alias_name) OVERRIDE; | 50 const std::string& alias_name) OVERRIDE; |
51 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 51 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
52 int child_process_id) OVERRIDE; | 52 int child_process_id) OVERRIDE; |
53 virtual std::string GetApplicationLocale() OVERRIDE; | 53 virtual std::string GetApplicationLocale() OVERRIDE; |
54 virtual std::string GetAcceptLangs( | 54 virtual std::string GetAcceptLangs( |
55 content::BrowserContext* context) OVERRIDE; | 55 content::BrowserContext* context) OVERRIDE; |
56 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; | 56 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; |
57 virtual bool AllowAppCache(const GURL& manifest_url, | 57 virtual bool AllowAppCache(const GURL& manifest_url, |
58 const GURL& first_party, | 58 const GURL& first_party, |
59 const content::ResourceContext& context) OVERRIDE; | 59 content::ResourceContext* context) OVERRIDE; |
60 virtual bool AllowGetCookie(const GURL& url, | 60 virtual bool AllowGetCookie(const GURL& url, |
61 const GURL& first_party, | 61 const GURL& first_party, |
62 const net::CookieList& cookie_list, | 62 const net::CookieList& cookie_list, |
63 const content::ResourceContext& context, | 63 content::ResourceContext* context, |
64 int render_process_id, | 64 int render_process_id, |
65 int render_view_id) OVERRIDE; | 65 int render_view_id) OVERRIDE; |
66 virtual bool AllowSetCookie(const GURL& url, | 66 virtual bool AllowSetCookie(const GURL& url, |
67 const GURL& first_party, | 67 const GURL& first_party, |
68 const std::string& cookie_line, | 68 const std::string& cookie_line, |
69 const content::ResourceContext& context, | 69 content::ResourceContext* context, |
70 int render_process_id, | 70 int render_process_id, |
71 int render_view_id, | 71 int render_view_id, |
72 net::CookieOptions* options) OVERRIDE; | 72 net::CookieOptions* options) OVERRIDE; |
73 virtual bool AllowSaveLocalState( | 73 virtual bool AllowSaveLocalState( |
74 const content::ResourceContext& context) OVERRIDE; | 74 content::ResourceContext* context) OVERRIDE; |
75 virtual bool AllowWorkerDatabase( | 75 virtual bool AllowWorkerDatabase( |
76 const GURL& url, | 76 const GURL& url, |
77 const string16& name, | 77 const string16& name, |
78 const string16& display_name, | 78 const string16& display_name, |
79 unsigned long estimated_size, | 79 unsigned long estimated_size, |
80 const content::ResourceContext& context, | 80 content::ResourceContext* context, |
81 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; | 81 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; |
82 virtual bool AllowWorkerFileSystem( | 82 virtual bool AllowWorkerFileSystem( |
83 const GURL& url, | 83 const GURL& url, |
84 const content::ResourceContext& context, | 84 content::ResourceContext* context, |
85 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; | 85 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; |
86 virtual net::URLRequestContext* OverrideRequestContextForURL( | 86 virtual net::URLRequestContext* OverrideRequestContextForURL( |
87 const GURL& url, const content::ResourceContext& context) OVERRIDE; | 87 const GURL& url, content::ResourceContext* context) OVERRIDE; |
88 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 88 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
89 virtual void OpenItem(const FilePath& path) OVERRIDE; | 89 virtual void OpenItem(const FilePath& path) OVERRIDE; |
90 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; | 90 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; |
91 virtual void AllowCertificateError( | 91 virtual void AllowCertificateError( |
92 SSLCertErrorHandler* handler, | 92 SSLCertErrorHandler* handler, |
93 bool overridable, | 93 bool overridable, |
94 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) | 94 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) |
95 OVERRIDE; | 95 OVERRIDE; |
96 virtual void SelectClientCertificate( | 96 virtual void SelectClientCertificate( |
97 int render_process_id, | 97 int render_process_id, |
98 int render_view_id, | 98 int render_view_id, |
99 SSLClientAuthHandler* handler) OVERRIDE; | 99 SSLClientAuthHandler* handler) OVERRIDE; |
100 virtual void AddNewCertificate( | 100 virtual void AddNewCertificate( |
101 net::URLRequest* request, | 101 net::URLRequest* request, |
102 net::X509Certificate* cert, | 102 net::X509Certificate* cert, |
103 int render_process_id, | 103 int render_process_id, |
104 int render_view_id) OVERRIDE; | 104 int render_view_id) OVERRIDE; |
105 virtual void RequestDesktopNotificationPermission( | 105 virtual void RequestDesktopNotificationPermission( |
106 const GURL& source_origin, | 106 const GURL& source_origin, |
107 int callback_context, | 107 int callback_context, |
108 int render_process_id, | 108 int render_process_id, |
109 int render_view_id) OVERRIDE; | 109 int render_view_id) OVERRIDE; |
110 virtual WebKit::WebNotificationPresenter::Permission | 110 virtual WebKit::WebNotificationPresenter::Permission |
111 CheckDesktopNotificationPermission( | 111 CheckDesktopNotificationPermission( |
112 const GURL& origin, | 112 const GURL& origin, |
113 const content::ResourceContext& context, | 113 content::ResourceContext* context, |
114 int render_process_id) OVERRIDE; | 114 int render_process_id) OVERRIDE; |
115 virtual void ShowDesktopNotification( | 115 virtual void ShowDesktopNotification( |
116 const content::ShowDesktopNotificationHostMsgParams& params, | 116 const content::ShowDesktopNotificationHostMsgParams& params, |
117 int render_process_id, | 117 int render_process_id, |
118 int render_view_id, | 118 int render_view_id, |
119 bool worker) OVERRIDE; | 119 bool worker) OVERRIDE; |
120 virtual void CancelDesktopNotification( | 120 virtual void CancelDesktopNotification( |
121 int render_process_id, | 121 int render_process_id, |
122 int render_view_id, | 122 int render_view_id, |
123 int notification_id) OVERRIDE; | 123 int notification_id) OVERRIDE; |
124 virtual bool CanCreateWindow( | 124 virtual bool CanCreateWindow( |
125 const GURL& origin, | 125 const GURL& origin, |
126 WindowContainerType container_type, | 126 WindowContainerType container_type, |
127 const content::ResourceContext& context, | 127 content::ResourceContext* context, |
128 int render_process_id) OVERRIDE; | 128 int render_process_id) OVERRIDE; |
129 virtual std::string GetWorkerProcessTitle( | 129 virtual std::string GetWorkerProcessTitle( |
130 const GURL& url, const content::ResourceContext& context) OVERRIDE; | 130 const GURL& url, content::ResourceContext* context) OVERRIDE; |
131 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 131 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
132 virtual ui::Clipboard* GetClipboard() OVERRIDE; | 132 virtual ui::Clipboard* GetClipboard() OVERRIDE; |
133 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() OVERRIDE; | 133 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() OVERRIDE; |
134 virtual net::NetLog* GetNetLog() OVERRIDE; | 134 virtual net::NetLog* GetNetLog() OVERRIDE; |
135 virtual speech_input::SpeechInputManager* GetSpeechInputManager() OVERRIDE; | 135 virtual speech_input::SpeechInputManager* GetSpeechInputManager() OVERRIDE; |
136 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; | 136 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; |
137 virtual bool IsFastShutdownPossible() OVERRIDE; | 137 virtual bool IsFastShutdownPossible() OVERRIDE; |
138 virtual void OverrideWebkitPrefs(RenderViewHost* rvh, | 138 virtual void OverrideWebkitPrefs(RenderViewHost* rvh, |
139 WebPreferences* prefs) OVERRIDE; | 139 WebPreferences* prefs) OVERRIDE; |
140 virtual void UpdateInspectorSetting(RenderViewHost* rvh, | 140 virtual void UpdateInspectorSetting(RenderViewHost* rvh, |
(...skipping 20 matching lines...) Expand all Loading... |
161 const GURL& url) OVERRIDE; | 161 const GURL& url) OVERRIDE; |
162 #endif | 162 #endif |
163 | 163 |
164 private: | 164 private: |
165 ShellBrowserMainParts* shell_browser_main_parts_; | 165 ShellBrowserMainParts* shell_browser_main_parts_; |
166 }; | 166 }; |
167 | 167 |
168 } // namespace content | 168 } // namespace content |
169 | 169 |
170 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 170 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |