Chromium Code Reviews

Side by Side Diff: chrome/browser/tab_contents/web_navigation_observer.h

Issue 4694008: Make pink's TabContentsWrapper change compile on Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents_wrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_NAVIGATION_OBSERVER_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_NAVIGATION_OBSERVER_H_
7
8 #include "chrome/browser/tab_contents/navigation_controller.h"
9
10 struct ViewHostMsg_FrameNavigate_Params;
11
12 // An observer API implemented by classes which are interested in various page
13 // load events from TabContents.
14
15 // TODO(pink): Is it worth having a bitfield where certain clients can only
16 // register for certain events? Is the extra function call worth the added pain
17 // on the caller to build the bitfield?
18
19 class WebNavigationObserver {
20 public:
21 // For removing PasswordManager deps...
22
23 virtual void NavigateToPendingEntry() { }
24
25 virtual void DidNavigateMainFramePostCommit(
26 const NavigationController::LoadCommittedDetails& details,
27 const ViewHostMsg_FrameNavigate_Params& params) { }
28 virtual void DidNavigateAnyFramePostCommit(
29 const NavigationController::LoadCommittedDetails& details,
30 const ViewHostMsg_FrameNavigate_Params& params) { }
31
32 virtual void DidStartLoading() { }
33 virtual void DidStopLoading() { }
34
35 // TODO(pinkerton): Not sure the best place for these.
Ben Goodger (Google) 2010/11/17 21:07:19 FYI, These should move to the opaque channel model
36 virtual void PasswordFormsFound(
37 const std::vector<webkit_glue::PasswordForm>& forms) { }
38 virtual void PasswordFormsVisible(
39 const std::vector<webkit_glue::PasswordForm>& visible_forms) { }
40
41 #if 0
42 // For unifying with delegate...
43
44 // Notifies the delegate that this contents is starting or is done loading
45 // some resource. The delegate should use this notification to represent
46 // loading feedback. See TabContents::is_loading()
47 virtual void LoadingStateChanged(TabContents* contents) { }
48 // Called to inform the delegate that the tab content's navigation state
49 // changed. The |changed_flags| indicates the parts of the navigation state
50 // that have been updated, and is any combination of the
51 // |TabContents::InvalidateTypes| bits.
52 virtual void NavigationStateChanged(const TabContents* source,
53 unsigned changed_flags) { }
54 #endif
55 };
56
57 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_NAVIGATION_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine