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

Side by Side Diff: chrome/browser/visitedlink/visitedlink_master.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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
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 #include "chrome/browser/visitedlink/visitedlink_master.h" 5 #include "chrome/browser/visitedlink/visitedlink_master.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <io.h> 9 #include <io.h>
10 #include <shlobj.h> 10 #include <shlobj.h>
11 #endif // defined(OS_WIN) 11 #endif // defined(OS_WIN)
12 #include <stdio.h> 12 #include <stdio.h>
13 13
14 #include <algorithm> 14 #include <algorithm>
15 15
16 #include "base/file_util.h" 16 #include "base/file_util.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/message_loop.h" 18 #include "base/message_loop.h"
19 #include "base/path_service.h" 19 #include "base/path_service.h"
20 #include "base/process_util.h" 20 #include "base/process_util.h"
21 #include "base/rand_util.h" 21 #include "base/rand_util.h"
22 #include "base/stack_container.h" 22 #include "base/stack_container.h"
23 #include "base/string_util.h" 23 #include "base/string_util.h"
24 #include "base/threading/thread_restrictions.h" 24 #include "base/threading/thread_restrictions.h"
25 #include "chrome/browser/history/history.h" 25 #include "chrome/browser/history/history.h"
26 #include "chrome/browser/profiles/profile.h" 26 #include "chrome/browser/profiles/profile.h"
27 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
28 28
29 using content::BrowserThread;
29 using file_util::ScopedFILE; 30 using file_util::ScopedFILE;
30 using file_util::OpenFile; 31 using file_util::OpenFile;
31 using file_util::TruncateFile; 32 using file_util::TruncateFile;
32 33
33 const int32 VisitedLinkMaster::kFileHeaderSignatureOffset = 0; 34 const int32 VisitedLinkMaster::kFileHeaderSignatureOffset = 0;
34 const int32 VisitedLinkMaster::kFileHeaderVersionOffset = 4; 35 const int32 VisitedLinkMaster::kFileHeaderVersionOffset = 4;
35 const int32 VisitedLinkMaster::kFileHeaderLengthOffset = 8; 36 const int32 VisitedLinkMaster::kFileHeaderLengthOffset = 8;
36 const int32 VisitedLinkMaster::kFileHeaderUsedOffset = 12; 37 const int32 VisitedLinkMaster::kFileHeaderUsedOffset = 12;
37 const int32 VisitedLinkMaster::kFileHeaderSaltOffset = 16; 38 const int32 VisitedLinkMaster::kFileHeaderSaltOffset = 16;
38 39
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 } 995 }
995 996
996 void VisitedLinkMaster::TableBuilder::OnCompleteMainThread() { 997 void VisitedLinkMaster::TableBuilder::OnCompleteMainThread() {
997 if (master_) 998 if (master_)
998 master_->OnTableRebuildComplete(success_, fingerprints_); 999 master_->OnTableRebuildComplete(success_, fingerprints_);
999 1000
1000 // WILL (generally) DELETE THIS! This balances the AddRef in 1001 // WILL (generally) DELETE THIS! This balances the AddRef in
1001 // VisitedLinkMaster::RebuildTableFromHistory. 1002 // VisitedLinkMaster::RebuildTableFromHistory.
1002 Release(); 1003 Release();
1003 } 1004 }
OLDNEW
« no previous file with comments | « chrome/browser/user_style_sheet_watcher_unittest.cc ('k') | chrome/browser/visitedlink/visitedlink_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698