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

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

Issue 8525016: Move Java Bridge files to new java/ subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 9 years, 1 month 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) 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 #include "content/browser/renderer_host/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_bridge_dispatcher_host.h" 8 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host.h"
9 #include "content/browser/tab_contents/tab_contents.h" 9 #include "content/browser/tab_contents/tab_contents.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h"
11 11
12 JavaBridgeDispatcherHostManager::JavaBridgeDispatcherHostManager( 12 JavaBridgeDispatcherHostManager::JavaBridgeDispatcherHostManager(
13 TabContents* tab_contents) 13 TabContents* tab_contents)
14 : TabContentsObserver(tab_contents) { 14 : TabContentsObserver(tab_contents) {
15 } 15 }
16 16
17 JavaBridgeDispatcherHostManager::~JavaBridgeDispatcherHostManager() { 17 JavaBridgeDispatcherHostManager::~JavaBridgeDispatcherHostManager() {
18 DCHECK_EQ(0U, instances_.size()); 18 DCHECK_EQ(0U, instances_.size());
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 instances_.erase(render_view_host); 68 instances_.erase(render_view_host);
69 } 69 }
70 70
71 void JavaBridgeDispatcherHostManager::TabContentsDestroyed( 71 void JavaBridgeDispatcherHostManager::TabContentsDestroyed(
72 TabContents* tab_contents) { 72 TabContents* tab_contents) {
73 // When the tab is shutting down, the TabContents clears its observers before 73 // When the tab is shutting down, the TabContents clears its observers before
74 // it kills all of its RenderViewHosts, so we won't get a call to 74 // it kills all of its RenderViewHosts, so we won't get a call to
75 // RenderViewDeleted() for all RenderViewHosts. 75 // RenderViewDeleted() for all RenderViewHosts.
76 instances_.clear(); 76 instances_.clear();
77 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698