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

Side by Side Diff: components/visitedlink/common/visitedlink_common.h

Issue 11825011: Componentize visitedlinks to src/components/visitedlink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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) 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 #ifndef CHROME_COMMON_VISITEDLINK_COMMON_H__ 5 #ifndef COMPONENTS_COMMON_VISITEDLINK_COMMON_H__
6 #define CHROME_COMMON_VISITEDLINK_COMMON_H__ 6 #define COMPONENTS_COMMON_VISITEDLINK_COMMON_H__
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12
12 class GURL; 13 class GURL;
13 14
15 namespace components {
16
14 // number of bytes in the salt 17 // number of bytes in the salt
15 #define LINK_SALT_LENGTH 8 18 #define LINK_SALT_LENGTH 8
16 19
17 // A multiprocess-safe database of the visited links for the browser. There 20 // A multiprocess-safe database of the visited links for the browser. There
18 // should be exactly one process that has write access (implemented by 21 // should be exactly one process that has write access (implemented by
19 // VisitedLinkMaster), while all other processes should be read-only 22 // VisitedLinkMaster), while all other processes should be read-only
20 // (implemented by VisitedLinkSlave). These other processes add links by calling 23 // (implemented by VisitedLinkSlave). These other processes add links by calling
21 // the writer process to add them for it. The writer may also notify the readers 24 // the writer process to add them for it. The writer may also notify the readers
22 // to replace their table when the table is resized. 25 // to replace their table when the table is resized.
23 // 26 //
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // the number of items in the hash table 127 // the number of items in the hash table
125 int32 table_length_; 128 int32 table_length_;
126 129
127 // salt used for each URL when computing the fingerprint 130 // salt used for each URL when computing the fingerprint
128 uint8 salt_[LINK_SALT_LENGTH]; 131 uint8 salt_[LINK_SALT_LENGTH];
129 132
130 private: 133 private:
131 DISALLOW_COPY_AND_ASSIGN(VisitedLinkCommon); 134 DISALLOW_COPY_AND_ASSIGN(VisitedLinkCommon);
132 }; 135 };
133 136
134 #endif // CHROME_COMMON_VISITEDLINK_COMMON_H_ 137 } // namespace components
138
139 #endif // COMPONENTS_COMMON_VISITEDLINK_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698