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

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

Issue 7353026: Move app/sql/* files to sql/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 5 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) 2009 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 #include "chrome/browser/history/visitsegment_database.h" 5 #include "chrome/browser/history/visitsegment_database.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "app/sql/statement.h"
14 #include "base/logging.h" 13 #include "base/logging.h"
15 #include "base/stl_util-inl.h" 14 #include "base/stl_util-inl.h"
16 #include "base/string_util.h" 15 #include "base/string_util.h"
17 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
18 #include "chrome/browser/history/page_usage_data.h" 17 #include "chrome/browser/history/page_usage_data.h"
18 #include "sql/statement.h"
19 19
20 // The following tables are used to store url segment information. 20 // The following tables are used to store url segment information.
21 // 21 //
22 // segments 22 // segments
23 // id Primary key 23 // id Primary key
24 // name A unique string to represent that segment. (URL derived) 24 // name A unique string to represent that segment. (URL derived)
25 // url_id ID of the url currently used to represent this segment. 25 // url_id ID of the url currently used to represent this segment.
26 // pres_index index used to store a fixed presentation position. 26 // pres_index index used to store a fixed presentation position.
27 // 27 //
28 // segment_usage 28 // segment_usage
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 NOTREACHED(); 376 NOTREACHED();
377 r = false; 377 r = false;
378 } 378 }
379 delete_usage.Reset(); 379 delete_usage.Reset();
380 delete_seg.Reset(); 380 delete_seg.Reset();
381 } 381 }
382 return r; 382 return r;
383 } 383 }
384 384
385 } // namespace history 385 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/visit_database_unittest.cc ('k') | chrome/browser/importer/firefox3_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698