Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: chrome/renderer/render_view.h

Issue 6209004: Switch BlockedPlugins away from using notifications... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/blocked_plugin.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 #if defined(OS_WIN) 49 #if defined(OS_WIN)
50 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root. 50 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root.
51 // VS warns when we inherit the WebWidgetClient method implementations from 51 // VS warns when we inherit the WebWidgetClient method implementations from
52 // RenderWidget. It's safe to ignore that warning. 52 // RenderWidget. It's safe to ignore that warning.
53 #pragma warning(disable: 4250) 53 #pragma warning(disable: 4250)
54 #endif 54 #endif
55 55
56 class AudioMessageFilter; 56 class AudioMessageFilter;
57 class AutoFillHelper; 57 class AutoFillHelper;
58 class BlockedPlugin;
58 class CustomMenuListener; 59 class CustomMenuListener;
59 class DictionaryValue; 60 class DictionaryValue;
60 class DeviceOrientationDispatcher; 61 class DeviceOrientationDispatcher;
61 class DevToolsAgent; 62 class DevToolsAgent;
62 class DevToolsClient; 63 class DevToolsClient;
63 class DomAutomationController; 64 class DomAutomationController;
64 class DOMUIBindings; 65 class DOMUIBindings;
65 class ExternalHostBindings; 66 class ExternalHostBindings;
66 class FilePath; 67 class FilePath;
67 class GeolocationDispatcher; 68 class GeolocationDispatcher;
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 int32 width, 381 int32 width,
381 int32 height, 382 int32 height,
382 TransportDIB::Handle transport_dib); 383 TransportDIB::Handle transport_dib);
383 void AcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, 384 void AcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window,
384 uint64 surface_id); 385 uint64 surface_id);
385 #endif 386 #endif
386 387
387 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate); 388 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate);
388 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); 389 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate);
389 390
391 void RegisterBlockedPlugin(BlockedPlugin* blocked_plugin);
392 void UnregisterBlockedPlugin(BlockedPlugin* blocked_plugin);
393
390 // IPC::Channel::Listener implementation ------------------------------------- 394 // IPC::Channel::Listener implementation -------------------------------------
391 395
392 virtual bool OnMessageReceived(const IPC::Message& msg); 396 virtual bool OnMessageReceived(const IPC::Message& msg);
393 397
394 // WebKit::WebWidgetClient implementation ------------------------------------ 398 // WebKit::WebWidgetClient implementation ------------------------------------
395 399
396 // Most methods are handled by RenderWidget. 400 // Most methods are handled by RenderWidget.
397 virtual void didFocus(); 401 virtual void didFocus();
398 virtual void didBlur(); 402 virtual void didBlur();
399 virtual void show(WebKit::WebNavigationPolicy policy); 403 virtual void show(WebKit::WebNavigationPolicy policy);
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 1356
1353 // All the currently active plugin delegates for this RenderView; kept so that 1357 // All the currently active plugin delegates for this RenderView; kept so that
1354 // we can enumerate them to send updates about things like window location 1358 // we can enumerate them to send updates about things like window location
1355 // or tab focus and visibily. These are non-owning references. 1359 // or tab focus and visibily. These are non-owning references.
1356 std::set<WebPluginDelegateProxy*> plugin_delegates_; 1360 std::set<WebPluginDelegateProxy*> plugin_delegates_;
1357 1361
1358 // A list of all Pepper v1 plugins that we've created that haven't been 1362 // A list of all Pepper v1 plugins that we've created that haven't been
1359 // destroyed yet. Pepper v2 plugins are tracked by the pepper_delegate_. 1363 // destroyed yet. Pepper v2 plugins are tracked by the pepper_delegate_.
1360 std::set<WebPluginDelegatePepper*> current_oldstyle_pepper_plugins_; 1364 std::set<WebPluginDelegatePepper*> current_oldstyle_pepper_plugins_;
1361 1365
1366 // A list of all BlockedPlugins so they can all be loaded if needed.
1367 std::set<BlockedPlugin*> blocked_plugins_;
1368
1362 // Helper objects ------------------------------------------------------------ 1369 // Helper objects ------------------------------------------------------------
1363 1370
1364 ScopedRunnableMethodFactory<RenderView> page_info_method_factory_; 1371 ScopedRunnableMethodFactory<RenderView> page_info_method_factory_;
1365 ScopedRunnableMethodFactory<RenderView> autofill_method_factory_; 1372 ScopedRunnableMethodFactory<RenderView> autofill_method_factory_;
1366 ScopedRunnableMethodFactory<RenderView> accessibility_method_factory_; 1373 ScopedRunnableMethodFactory<RenderView> accessibility_method_factory_;
1367 1374
1368 // Responsible for translating the page contents to other languages. 1375 // Responsible for translating the page contents to other languages.
1369 TranslateHelper translate_helper_; 1376 TranslateHelper translate_helper_;
1370 1377
1371 // Responsible for automatically filling login and password textfields. 1378 // Responsible for automatically filling login and password textfields.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1516 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1510 // sections rather than throwing it randomly at the end. If you're adding a 1517 // sections rather than throwing it randomly at the end. If you're adding a
1511 // bunch of stuff, you should probably create a helper class and put your 1518 // bunch of stuff, you should probably create a helper class and put your
1512 // data and methods on that to avoid bloating RenderView more. 1519 // data and methods on that to avoid bloating RenderView more.
1513 // --------------------------------------------------------------------------- 1520 // ---------------------------------------------------------------------------
1514 1521
1515 DISALLOW_COPY_AND_ASSIGN(RenderView); 1522 DISALLOW_COPY_AND_ASSIGN(RenderView);
1516 }; 1523 };
1517 1524
1518 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1525 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/blocked_plugin.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698