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

Side by Side Diff: chrome/browser/history/history_tab_helper.h

Issue 71723003: Remove HistoryPublisher code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ref to history_indexer.idl Created 7 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
« no previous file with comments | « chrome/browser/history/history_service.cc ('k') | chrome/browser/history/history_tab_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/public/browser/web_contents_observer.h" 10 #include "content/public/browser/web_contents_observer.h"
(...skipping 25 matching lines...) Expand all
36 const GURL& virtual_url, 36 const GURL& virtual_url,
37 base::Time timestamp, 37 base::Time timestamp,
38 bool did_replace_entry, 38 bool did_replace_entry,
39 const content::FrameNavigateParams& params); 39 const content::FrameNavigateParams& params);
40 40
41 private: 41 private:
42 explicit HistoryTabHelper(content::WebContents* web_contents); 42 explicit HistoryTabHelper(content::WebContents* web_contents);
43 friend class content::WebContentsUserData<HistoryTabHelper>; 43 friend class content::WebContentsUserData<HistoryTabHelper>;
44 44
45 // content::WebContentsObserver implementation. 45 // content::WebContentsObserver implementation.
46 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
47 virtual void DidNavigateMainFrame( 46 virtual void DidNavigateMainFrame(
48 const content::LoadCommittedDetails& details, 47 const content::LoadCommittedDetails& details,
49 const content::FrameNavigateParams& params) OVERRIDE; 48 const content::FrameNavigateParams& params) OVERRIDE;
50 virtual void DidNavigateAnyFrame( 49 virtual void DidNavigateAnyFrame(
51 const content::LoadCommittedDetails& details, 50 const content::LoadCommittedDetails& details,
52 const content::FrameNavigateParams& params) OVERRIDE; 51 const content::FrameNavigateParams& params) OVERRIDE;
53 virtual void TitleWasSet(content::NavigationEntry* entry, 52 virtual void TitleWasSet(content::NavigationEntry* entry,
54 bool explicit_set) OVERRIDE; 53 bool explicit_set) OVERRIDE;
55 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; 54 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE;
56 55
57 void OnPageContents(const GURL& url, const string16& contents);
58
59 // Helper function to return the history service. May return NULL. 56 // Helper function to return the history service. May return NULL.
60 HistoryService* GetHistoryService(); 57 HistoryService* GetHistoryService();
61 58
62 // Whether we have a (non-empty) title for the current page. 59 // Whether we have a (non-empty) title for the current page.
63 // Used to prevent subsequent title updates from affecting history. This 60 // Used to prevent subsequent title updates from affecting history. This
64 // prevents some weirdness because some AJAXy apps use titles for status 61 // prevents some weirdness because some AJAXy apps use titles for status
65 // messages. 62 // messages.
66 bool received_page_title_; 63 bool received_page_title_;
67 64
68 DISALLOW_COPY_AND_ASSIGN(HistoryTabHelper); 65 DISALLOW_COPY_AND_ASSIGN(HistoryTabHelper);
69 }; 66 };
70 67
71 #endif // CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_ 68 #endif // CHROME_BROWSER_HISTORY_HISTORY_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_service.cc ('k') | chrome/browser/history/history_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698