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

Side by Side Diff: chrome/browser/browsing_data_indexed_db_helper.h

Issue 6366019: Part 1 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Nico's changes that I patched in for testing. Created 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BROWSER_BROWSING_DATA_INDEXED_DB_HELPER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_INDEXED_DB_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_INDEXED_DB_HELPER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_INDEXED_DB_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 19 matching lines...) Expand all
30 // Contains detailed information about an indexed database. 30 // Contains detailed information about an indexed database.
31 struct IndexedDBInfo { 31 struct IndexedDBInfo {
32 IndexedDBInfo( 32 IndexedDBInfo(
33 const std::string& protocol, 33 const std::string& protocol,
34 const std::string& host, 34 const std::string& host,
35 unsigned short port, 35 unsigned short port,
36 const std::string& database_identifier, 36 const std::string& database_identifier,
37 const std::string& origin, 37 const std::string& origin,
38 const FilePath& file_path, 38 const FilePath& file_path,
39 int64 size, 39 int64 size,
40 base::Time last_modified) 40 base::Time last_modified);
41 : protocol(protocol), 41 ~IndexedDBInfo();
42 host(host),
43 port(port),
44 database_identifier(database_identifier),
45 origin(origin),
46 file_path(file_path),
47 size(size),
48 last_modified(last_modified) {
49 }
50 42
51 bool IsFileSchemeData() { 43 bool IsFileSchemeData();
52 return protocol == chrome::kFileScheme;
Nico 2011/01/27 03:55:17 does your plugin warn on this? This looks pretty h
Elliot Glaysher 2011/01/27 18:48:05 No, it didn't. I just did it for consistency with
53 }
54 44
55 std::string protocol; 45 std::string protocol;
56 std::string host; 46 std::string host;
57 unsigned short port; 47 unsigned short port;
58 std::string database_identifier; 48 std::string database_identifier;
59 std::string origin; 49 std::string origin;
60 FilePath file_path; 50 FilePath file_path;
61 int64 size; 51 int64 size;
62 base::Time last_modified; 52 base::Time last_modified;
63 }; 53 };
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual ~CannedBrowsingDataIndexedDBHelper(); 102 virtual ~CannedBrowsingDataIndexedDBHelper();
113 103
114 Profile* profile_; 104 Profile* profile_;
115 105
116 std::vector<IndexedDBInfo> indexed_db_info_; 106 std::vector<IndexedDBInfo> indexed_db_info_;
117 107
118 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataIndexedDBHelper); 108 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataIndexedDBHelper);
119 }; 109 };
120 110
121 #endif // CHROME_BROWSER_BROWSING_DATA_INDEXED_DB_HELPER_H_ 111 #endif // CHROME_BROWSER_BROWSING_DATA_INDEXED_DB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698