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

Side by Side Diff: content/browser/browser_plugin/old/browser_plugin_host.h

Issue 10829219: Browser Plugin: Move to old namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix. Created 8 years, 4 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 | « no previous file | content/browser/browser_plugin/old/browser_plugin_host.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) 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_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H__ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H__
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H__ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H__
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "content/public/browser/notification_observer.h" 11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 12 #include "content/public/browser/notification_registrar.h"
13 #include "content/public/browser/web_contents_delegate.h" 13 #include "content/public/browser/web_contents_delegate.h"
14 #include "content/public/browser/web_contents_observer.h" 14 #include "content/public/browser/web_contents_observer.h"
15 #include "ppapi/c/pp_instance.h" 15 #include "ppapi/c/pp_instance.h"
16 #include "ui/gfx/size.h" 16 #include "ui/gfx/size.h"
17 17
18 class WebContentsImpl; 18 class WebContentsImpl;
19 19
20 namespace IPC { 20 namespace IPC {
21 struct ChannelHandle; 21 struct ChannelHandle;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 25
26 class RenderProcessHost; 26 class RenderProcessHost;
27 27
28 namespace old {
29
30
28 // A BrowserPluginHost object is used by both embedders and guests. 31 // A BrowserPluginHost object is used by both embedders and guests.
29 // The primary purpose of BrowserPluginHost is to allow an embedder 32 // The primary purpose of BrowserPluginHost is to allow an embedder
30 // to manage the lifetime of its guests. It cleans up its guests 33 // to manage the lifetime of its guests. It cleans up its guests
31 // on navigation, crashes, and "hides" guests when it hides. 34 // on navigation, crashes, and "hides" guests when it hides.
32 // For the guest, BrowserPluginHost keeps track of its embedder, 35 // For the guest, BrowserPluginHost keeps track of its embedder,
33 // and its BrowserPlugin instance ID. 36 // and its BrowserPlugin instance ID.
34 class BrowserPluginHost : public WebContentsObserver, 37 class BrowserPluginHost : public WebContentsObserver,
35 public NotificationObserver, 38 public NotificationObserver,
36 public WebContentsDelegate { 39 public WebContentsDelegate {
37 public: 40 public:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 std::string embedder_channel_name_; 123 std::string embedder_channel_name_;
121 // An identifier that uniquely identifies a browser plugin container 124 // An identifier that uniquely identifies a browser plugin container
122 // within an embedder. 125 // within an embedder.
123 int instance_id_; 126 int instance_id_;
124 GuestMap guests_; 127 GuestMap guests_;
125 ContainerInstanceMap guests_by_container_id_; 128 ContainerInstanceMap guests_by_container_id_;
126 129
127 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHost); 130 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHost);
128 }; 131 };
129 132
133 } // namespace old
130 } // namespace content 134 } // namespace content
131 135
132 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H_ 136 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/old/browser_plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698