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

Side by Side Diff: chrome/browser/history/in_memory_history_backend.cc

Issue 4247: Port some things in browser/{download,history}, minor things in common.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « chrome/browser/history/history_types_unittest.cc ('k') | chrome/browser/history/snippet.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/history/in_memory_history_backend.h" 5 #include "chrome/browser/history/in_memory_history_backend.h"
6 6
7 #include "chrome/browser/browser_process.h" 7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/history/history_database.h"
9 #include "chrome/browser/history/history_notifications.h" 8 #include "chrome/browser/history/history_notifications.h"
10 #include "chrome/browser/history/in_memory_database.h" 9 #include "chrome/browser/history/in_memory_database.h"
11 #include "chrome/browser/profile.h" 10 #include "chrome/browser/profile.h"
12 11
13 namespace history { 12 namespace history {
14 13
15 // If a page becomes starred we use this id in place of the real starred id. 14 // If a page becomes starred we use this id in place of the real starred id.
16 // See note in OnURLsStarred. 15 // See note in OnURLsStarred.
17 static const StarID kBogusStarredID = 0x0FFFFFFF; 16 static const StarID kBogusStarredID = 0x0FFFFFFF;
18 17
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 if (id) { 128 if (id) {
130 // We typically won't have most of them since we only have a subset of 129 // We typically won't have most of them since we only have a subset of
131 // history, so ignore errors. 130 // history, so ignore errors.
132 db_->DeleteURLRow(id); 131 db_->DeleteURLRow(id);
133 } 132 }
134 } 133 }
135 } 134 }
136 135
137 } // namespace history 136 } // namespace history
138 137
OLDNEW
« no previous file with comments | « chrome/browser/history/history_types_unittest.cc ('k') | chrome/browser/history/snippet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698