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_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 } | 67 } |
68 | 68 |
69 namespace blink { | 69 namespace blink { |
70 class WebSecurityOrigin; | 70 class WebSecurityOrigin; |
71 } | 71 } |
72 | 72 |
73 #if defined(ENABLE_WEBRTC) | 73 #if defined(ENABLE_WEBRTC) |
74 class WebRtcLoggingMessageFilter; | 74 class WebRtcLoggingMessageFilter; |
75 #endif | 75 #endif |
76 | 76 |
77 namespace internal { | |
Alexei Svitkine (slow)
2016/08/08 11:32:35
Nit add blank lines within this.
kdsilva
2016/08/08 19:10:20
Done.
| |
78 extern const char kFlashYouTubeRewriteUMA[]; | |
79 // Used for UMA. Values should not be reorderer or reused. | |
80 enum YouTubeRewriteStatus { | |
81 SUCCESS = 0, | |
82 SUCCESS_PARAMS_REWRITE = 1, | |
83 SUCCESS_ENABLEJSAPI = 2, | |
84 FAILURE_ENABLEJSAPI = 3, | |
85 NUM_PLUGIN_ERROR // should be kept last | |
86 }; | |
87 } // namespace internal | |
Alexei Svitkine (slow)
2016/08/08 11:32:35
There should be 2 spaces before the comment.
kdsilva
2016/08/08 19:10:20
Done.
| |
88 | |
77 class ChromeContentRendererClient : public content::ContentRendererClient { | 89 class ChromeContentRendererClient : public content::ContentRendererClient { |
78 public: | 90 public: |
79 ChromeContentRendererClient(); | 91 ChromeContentRendererClient(); |
80 ~ChromeContentRendererClient() override; | 92 ~ChromeContentRendererClient() override; |
81 | 93 |
82 void RenderThreadStarted() override; | 94 void RenderThreadStarted() override; |
83 void RenderFrameCreated(content::RenderFrame* render_frame) override; | 95 void RenderFrameCreated(content::RenderFrame* render_frame) override; |
84 void RenderViewCreated(content::RenderView* render_view) override; | 96 void RenderViewCreated(content::RenderView* render_view) override; |
85 SkBitmap* GetSadPluginBitmap() override; | 97 SkBitmap* GetSadPluginBitmap() override; |
86 SkBitmap* GetSadWebViewBitmap() override; | 98 SkBitmap* GetSadWebViewBitmap() override; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
155 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; | 167 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; |
156 void DidInitializeServiceWorkerContextOnWorkerThread( | 168 void DidInitializeServiceWorkerContextOnWorkerThread( |
157 v8::Local<v8::Context> context, | 169 v8::Local<v8::Context> context, |
158 int embedded_worker_id, | 170 int embedded_worker_id, |
159 const GURL& url) override; | 171 const GURL& url) override; |
160 void WillDestroyServiceWorkerContextOnWorkerThread( | 172 void WillDestroyServiceWorkerContextOnWorkerThread( |
161 v8::Local<v8::Context> context, | 173 v8::Local<v8::Context> context, |
162 int embedded_worker_id, | 174 int embedded_worker_id, |
163 const GURL& url) override; | 175 const GURL& url) override; |
164 bool ShouldEnforceWebRTCRoutingPreferences() override; | 176 bool ShouldEnforceWebRTCRoutingPreferences() override; |
165 | |
mlamouri (slow - plz ping)
2016/08/08 12:40:28
nit: I assume this change wasn't intentional?
kdsilva
2016/08/08 19:10:20
Ack. Removed unnecessary line I had added.
| |
166 GURL OverrideFlashEmbedWithHTML(const GURL& url) override; | 177 GURL OverrideFlashEmbedWithHTML(const GURL& url) override; |
167 | 178 |
168 #if defined(ENABLE_SPELLCHECK) | 179 #if defined(ENABLE_SPELLCHECK) |
169 // Sets a new |spellcheck|. Used for testing only. | 180 // Sets a new |spellcheck|. Used for testing only. |
170 // Takes ownership of |spellcheck|. | 181 // Takes ownership of |spellcheck|. |
171 void SetSpellcheck(SpellCheck* spellcheck); | 182 void SetSpellcheck(SpellCheck* spellcheck); |
172 #endif | 183 #endif |
173 | 184 |
174 #if defined(ENABLE_PLUGINS) | 185 #if defined(ENABLE_PLUGINS) |
175 static blink::WebPlugin* CreatePlugin( | 186 static blink::WebPlugin* CreatePlugin( |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
226 #if defined(ENABLE_PRINT_PREVIEW) | 237 #if defined(ENABLE_PRINT_PREVIEW) |
227 std::unique_ptr<ChromePDFPrintClient> pdf_print_client_; | 238 std::unique_ptr<ChromePDFPrintClient> pdf_print_client_; |
228 #endif | 239 #endif |
229 #if defined(ENABLE_PLUGINS) | 240 #if defined(ENABLE_PLUGINS) |
230 std::set<std::string> allowed_camera_device_origins_; | 241 std::set<std::string> allowed_camera_device_origins_; |
231 std::set<std::string> allowed_compositor_origins_; | 242 std::set<std::string> allowed_compositor_origins_; |
232 #endif | 243 #endif |
233 }; | 244 }; |
234 | 245 |
235 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 246 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |