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

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

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 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 CHROME_BROWSER_HISTORY_HISTORY_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/string16.h" 17 #include "base/string16.h"
18 #include "base/task.h" 18 #include "base/task.h"
19 #include "chrome/browser/favicon/favicon_service.h" 19 #include "chrome/browser/favicon/favicon_service.h"
20 #include "chrome/browser/history/history_types.h" 20 #include "chrome/browser/history/history_types.h"
21 #include "chrome/browser/search_engines/template_url_id.h" 21 #include "chrome/browser/search_engines/template_url_id.h"
22 #include "chrome/common/ref_counted_util.h" 22 #include "chrome/common/ref_counted_util.h"
23 #include "content/browser/cancelable_request.h" 23 #include "content/browser/cancelable_request.h"
24 #include "content/common/notification_observer.h" 24 #include "content/common/notification_observer.h"
25 #include "content/common/notification_registrar.h" 25 #include "content/common/notification_registrar.h"
26 #include "content/common/page_transition_types.h" 26 #include "content/public/common/page_transition_types.h"
27 #include "sql/init_status.h" 27 #include "sql/init_status.h"
28 28
29 class BookmarkService; 29 class BookmarkService;
30 struct DownloadPersistentStoreInfo; 30 struct DownloadPersistentStoreInfo;
31 class FilePath; 31 class FilePath;
32 class GURL; 32 class GURL;
33 class HistoryURLProvider; 33 class HistoryURLProvider;
34 struct HistoryURLProviderParams; 34 struct HistoryURLProviderParams;
35 class InMemoryURLDatabase; 35 class InMemoryURLDatabase;
36 class MainPagesRequest; 36 class MainPagesRequest;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // 182 //
183 // 'did_replace_entry' is true when the navigation entry for this page has 183 // 'did_replace_entry' is true when the navigation entry for this page has
184 // replaced the existing entry. A non-user initiated redirect causes such 184 // replaced the existing entry. A non-user initiated redirect causes such
185 // replacement. 185 // replacement.
186 // 186 //
187 // All "Add Page" functions will update the visited link database. 187 // All "Add Page" functions will update the visited link database.
188 void AddPage(const GURL& url, 188 void AddPage(const GURL& url,
189 const void* id_scope, 189 const void* id_scope,
190 int32 page_id, 190 int32 page_id,
191 const GURL& referrer, 191 const GURL& referrer,
192 PageTransition::Type transition, 192 content::PageTransition transition,
193 const history::RedirectList& redirects, 193 const history::RedirectList& redirects,
194 history::VisitSource visit_source, 194 history::VisitSource visit_source,
195 bool did_replace_entry); 195 bool did_replace_entry);
196 196
197 // For adding pages to history with a specific time. This is for testing 197 // For adding pages to history with a specific time. This is for testing
198 // purposes. Call the previous one to use the current time. 198 // purposes. Call the previous one to use the current time.
199 void AddPage(const GURL& url, 199 void AddPage(const GURL& url,
200 base::Time time, 200 base::Time time,
201 const void* id_scope, 201 const void* id_scope,
202 int32 page_id, 202 int32 page_id,
203 const GURL& referrer, 203 const GURL& referrer,
204 PageTransition::Type transition, 204 content::PageTransition transition,
205 const history::RedirectList& redirects, 205 const history::RedirectList& redirects,
206 history::VisitSource visit_source, 206 history::VisitSource visit_source,
207 bool did_replace_entry); 207 bool did_replace_entry);
208 208
209 // For adding pages to history where no tracking information can be done. 209 // For adding pages to history where no tracking information can be done.
210 void AddPage(const GURL& url, history::VisitSource visit_source) { 210 void AddPage(const GURL& url, history::VisitSource visit_source) {
211 AddPage(url, NULL, 0, GURL(), PageTransition::LINK, 211 AddPage(url, NULL, 0, GURL(), content::PAGE_TRANSITION_LINK,
212 history::RedirectList(), visit_source, false); 212 history::RedirectList(), visit_source, false);
213 } 213 }
214 214
215 // All AddPage variants end up here. 215 // All AddPage variants end up here.
216 void AddPage(const history::HistoryAddPageArgs& add_page_args); 216 void AddPage(const history::HistoryAddPageArgs& add_page_args);
217 217
218 // Adds an entry for the specified url without creating a visit. This should 218 // Adds an entry for the specified url without creating a visit. This should
219 // only be used when bookmarking a page, otherwise the row leaks in the 219 // only be used when bookmarking a page, otherwise the row leaks in the
220 // history db (it never gets cleaned). 220 // history db (it never gets cleaned).
221 void AddPageNoVisitForBookmark(const GURL& url); 221 void AddPageNoVisitForBookmark(const GURL& url);
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 BookmarkService* bookmark_service_; 870 BookmarkService* bookmark_service_;
871 bool no_db_; 871 bool no_db_;
872 872
873 // True if needs top site migration. 873 // True if needs top site migration.
874 bool needs_top_sites_migration_; 874 bool needs_top_sites_migration_;
875 875
876 DISALLOW_COPY_AND_ASSIGN(HistoryService); 876 DISALLOW_COPY_AND_ASSIGN(HistoryService);
877 }; 877 };
878 878
879 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ 879 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/expire_history_backend_unittest.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698