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

Side by Side Diff: chrome/browser/browsing_data_local_storage_helper.cc

Issue 6272025: Part 2 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2011 Created 9 years, 10 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) 2010 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/browsing_data_local_storage_helper.h" 5 #include "chrome/browser/browsing_data_local_storage_helper.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/browser_thread.h" 11 #include "chrome/browser/browser_thread.h"
12 #include "chrome/browser/in_process_webkit/webkit_context.h" 12 #include "chrome/browser/in_process_webkit/webkit_context.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
17 #include "webkit/glue/webkit_glue.h" 17 #include "webkit/glue/webkit_glue.h"
18 18
19 BrowsingDataLocalStorageHelper::LocalStorageInfo::LocalStorageInfo() {}
20
21 BrowsingDataLocalStorageHelper::LocalStorageInfo::LocalStorageInfo(
22 const std::string& protocol,
23 const std::string& host,
24 unsigned short port,
25 const std::string& database_identifier,
26 const std::string& origin,
27 const FilePath& file_path,
28 int64 size,
29 base::Time last_modified)
30 : protocol(protocol),
31 host(host),
32 port(port),
33 database_identifier(database_identifier),
34 origin(origin),
35 file_path(file_path),
36 size(size),
37 last_modified(last_modified) {
38 }
39
40 BrowsingDataLocalStorageHelper::LocalStorageInfo::~LocalStorageInfo() {}
41
19 BrowsingDataLocalStorageHelper::BrowsingDataLocalStorageHelper( 42 BrowsingDataLocalStorageHelper::BrowsingDataLocalStorageHelper(
20 Profile* profile) 43 Profile* profile)
21 : profile_(profile), 44 : profile_(profile),
22 completion_callback_(NULL), 45 completion_callback_(NULL),
23 is_fetching_(false) { 46 is_fetching_(false) {
24 DCHECK(profile_); 47 DCHECK(profile_);
25 } 48 }
26 49
27 BrowsingDataLocalStorageHelper::~BrowsingDataLocalStorageHelper() { 50 BrowsingDataLocalStorageHelper::~BrowsingDataLocalStorageHelper() {
28 } 51 }
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 177
155 bool CannedBrowsingDataLocalStorageHelper::empty() const { 178 bool CannedBrowsingDataLocalStorageHelper::empty() const {
156 return local_storage_info_.empty(); 179 return local_storage_info_.empty();
157 } 180 }
158 181
159 void CannedBrowsingDataLocalStorageHelper::StartFetching( 182 void CannedBrowsingDataLocalStorageHelper::StartFetching(
160 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback) { 183 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback) {
161 callback->Run(local_storage_info_); 184 callback->Run(local_storage_info_);
162 delete callback; 185 delete callback;
163 } 186 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_local_storage_helper.h ('k') | chrome/browser/extensions/extension_pref_value_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698