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

Side by Side Diff: content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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/renderer_host/java/java_bridge_dispatcher_host_manager .h" 5 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host.h" 8 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
10 10
11 using content::RenderViewHost;
12
11 JavaBridgeDispatcherHostManager::JavaBridgeDispatcherHostManager( 13 JavaBridgeDispatcherHostManager::JavaBridgeDispatcherHostManager(
12 content::WebContents* web_contents) 14 content::WebContents* web_contents)
13 : content::WebContentsObserver(web_contents) { 15 : content::WebContentsObserver(web_contents) {
14 } 16 }
15 17
16 JavaBridgeDispatcherHostManager::~JavaBridgeDispatcherHostManager() { 18 JavaBridgeDispatcherHostManager::~JavaBridgeDispatcherHostManager() {
17 DCHECK_EQ(0U, instances_.size()); 19 DCHECK_EQ(0U, instances_.size());
18 } 20 }
19 21
20 void JavaBridgeDispatcherHostManager::AddNamedObject(const string16& name, 22 void JavaBridgeDispatcherHostManager::AddNamedObject(const string16& name,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 instances_.erase(render_view_host); 69 instances_.erase(render_view_host);
68 } 70 }
69 71
70 void JavaBridgeDispatcherHostManager::WebContentsDestroyed( 72 void JavaBridgeDispatcherHostManager::WebContentsDestroyed(
71 content::WebContents* web_contents) { 73 content::WebContents* web_contents) {
72 // When the tab is shutting down, the WebContents clears its observers before 74 // When the tab is shutting down, the WebContents clears its observers before
73 // it kills all of its RenderViewHosts, so we won't get a call to 75 // it kills all of its RenderViewHosts, so we won't get a call to
74 // RenderViewDeleted() for all RenderViewHosts. 76 // RenderViewDeleted() for all RenderViewHosts.
75 instances_.clear(); 77 instances_.clear();
76 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698