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

Side by Side Diff: content/renderer/browser_plugin/mock_browser_plugin.h

Issue 11956022: Browser Plugin: Allocate Instance IDs in BrowserPluginEmbedder instead of BrowserPluginManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Diff against simplified focus Created 7 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
OLDNEW
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_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_
7 7
8 #include "content/renderer/browser_plugin/browser_plugin.h" 8 #include "content/renderer/browser_plugin/browser_plugin.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 class MockBrowserPlugin : public BrowserPlugin { 12 class MockBrowserPlugin : public BrowserPlugin {
13 public: 13 public:
14 MockBrowserPlugin( 14 MockBrowserPlugin(RenderViewImpl* render_view,
15 int id, 15 WebKit::WebFrame* frame,
16 RenderViewImpl* render_view, 16 const WebKit::WebPluginParams& params);
17 WebKit::WebFrame* frame,
18 const WebKit::WebPluginParams& params);
19 17
20 virtual ~MockBrowserPlugin(); 18 virtual ~MockBrowserPlugin();
21 19
22 // Allow poking at a few private members. 20 // Allow poking at a few private members.
23 using BrowserPlugin::guest_crashed_; 21 using BrowserPlugin::guest_crashed_;
24 using BrowserPlugin::pending_damage_buffer_; 22 using BrowserPlugin::pending_damage_buffer_;
25 using BrowserPlugin::damage_buffer_sequence_id_; 23 using BrowserPlugin::damage_buffer_sequence_id_;
26 }; 24 };
27 25
28 } // namespace content 26 } // namespace content
29 27
30 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_ 28 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_MOCK_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698