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

Side by Side Diff: content/browser/tab_contents/tab_contents_observer.h

Issue 8366034: Adds browser-side component of Java Bridge for a TabContents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Guards with ENABLE_JAVA_BRIDGE and addresses other comments 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 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
7 7
8 #include "content/browser/tab_contents/navigation_controller.h" 8 #include "content/browser/tab_contents/navigation_controller.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/common/page_transition_types.h" 10 #include "content/public/common/page_transition_types.h"
11 #include "ipc/ipc_channel.h" 11 #include "ipc/ipc_channel.h"
12 #include "webkit/glue/window_open_disposition.h" 12 #include "webkit/glue/window_open_disposition.h"
13 13
14 class RenderViewHost; 14 class RenderViewHost;
15 struct ViewHostMsg_FrameNavigate_Params; 15 struct ViewHostMsg_FrameNavigate_Params;
16 16
17 // An observer API implemented by classes which are interested in various page 17 // An observer API implemented by classes which are interested in various page
18 // load events from TabContents. They also get a chance to filter IPC messages. 18 // load events from TabContents. They also get a chance to filter IPC messages.
19 class CONTENT_EXPORT TabContentsObserver : public IPC::Channel::Listener, 19 class CONTENT_EXPORT TabContentsObserver : public IPC::Channel::Listener,
20 public IPC::Message::Sender { 20 public IPC::Message::Sender {
21 public: 21 public:
22 virtual void RenderViewCreated(RenderViewHost* render_view_host); 22 virtual void RenderViewCreated(RenderViewHost* render_view_host);
23 virtual void RenderViewDeleted(RenderViewHost* render_view_host);
23 virtual void NavigateToPendingEntry( 24 virtual void NavigateToPendingEntry(
24 const GURL& url, 25 const GURL& url,
25 NavigationController::ReloadType reload_type); 26 NavigationController::ReloadType reload_type);
26 virtual void DidNavigateMainFramePostCommit( 27 virtual void DidNavigateMainFramePostCommit(
27 const content::LoadCommittedDetails& details, 28 const content::LoadCommittedDetails& details,
28 const ViewHostMsg_FrameNavigate_Params& params); 29 const ViewHostMsg_FrameNavigate_Params& params);
29 virtual void DidNavigateAnyFramePostCommit( 30 virtual void DidNavigateAnyFramePostCommit(
30 const content::LoadCommittedDetails& details, 31 const content::LoadCommittedDetails& details,
31 const ViewHostMsg_FrameNavigate_Params& params); 32 const ViewHostMsg_FrameNavigate_Params& params);
32 // |render_view_host| is the RenderViewHost for which the provisional load is 33 // |render_view_host| is the RenderViewHost for which the provisional load is
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 128
128 TabContents* tab_contents_; 129 TabContents* tab_contents_;
129 130
130 // The routing ID of the associated TabContents. 131 // The routing ID of the associated TabContents.
131 int routing_id_; 132 int routing_id_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); 134 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver);
134 }; 135 };
135 136
136 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ 137 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698