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

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

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
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 #include "content/browser/browser_plugin/old/browser_plugin_host.h" 5 #include "content/browser/browser_plugin/old/browser_plugin_host.h"
6 6
7 #include "content/browser/browser_plugin/old/browser_plugin_host_helper.h" 7 #include "content/browser/browser_plugin/old/browser_plugin_host_helper.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/common/old_browser_plugin_messages.h" 10 #include "content/common/old_browser_plugin_messages.h"
11 #include "content/public/common/url_constants.h" 11 #include "content/public/common/url_constants.h"
12 #include "content/public/browser/notification_details.h" 12 #include "content/public/browser/notification_details.h"
13 #include "content/public/browser/notification_source.h" 13 #include "content/public/browser/notification_source.h"
14 #include "content/public/browser/notification_types.h" 14 #include "content/public/browser/notification_types.h"
15 #include "content/public/browser/render_process_host.h" 15 #include "content/public/browser/render_process_host.h"
16 #include "content/public/browser/render_widget_host_view.h" 16 #include "content/public/browser/render_widget_host_view.h"
17 #include "content/public/browser/site_instance.h" 17 #include "content/public/browser/site_instance.h"
18 #include "content/public/browser/web_contents_view.h" 18 #include "content/public/browser/web_contents_view.h"
19 #include "ppapi/proxy/ppapi_messages.h" 19 #include "ppapi/proxy/ppapi_messages.h"
20 20
21 namespace content { 21 namespace content {
22 namespace old {
22 23
23 BrowserPluginHost::BrowserPluginHost( 24 BrowserPluginHost::BrowserPluginHost(
24 WebContentsImpl* web_contents) 25 WebContentsImpl* web_contents)
25 : WebContentsObserver(web_contents), 26 : WebContentsObserver(web_contents),
26 embedder_render_process_host_(NULL), 27 embedder_render_process_host_(NULL),
27 instance_id_(0) { 28 instance_id_(0) {
28 // Listen to visibility changes so that an embedder hides its guests 29 // Listen to visibility changes so that an embedder hides its guests
29 // as well. 30 // as well.
30 registrar_.Add(this, 31 registrar_.Add(this,
31 NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED, 32 NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED,
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 else 228 else
228 web_contents->WasHidden(); 229 web_contents->WasHidden();
229 } 230 }
230 break; 231 break;
231 } 232 }
232 default: 233 default:
233 NOTREACHED() << "Unexpected notification type: " << type; 234 NOTREACHED() << "Unexpected notification type: " << type;
234 } 235 }
235 } 236 }
236 237
238 } // namespace old
237 } // namespace content 239 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698