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

Side by Side Diff: chrome/browser/extensions/activity_log/fullstream_ui_policy.h

Issue 635573005: Cleanup: Better constify some strings in chrome/browser/{chromeos,extensions}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, nit Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/activity_log/activity_database.h" 10 #include "chrome/browser/extensions/activity_log/activity_database.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Clean the URL data stored for this policy. 46 // Clean the URL data stored for this policy.
47 void RemoveURLs(const std::vector<GURL>& restrict_urls) override; 47 void RemoveURLs(const std::vector<GURL>& restrict_urls) override;
48 48
49 // Clean the data related to this extension for this policy. 49 // Clean the data related to this extension for this policy.
50 void RemoveExtensionData(const std::string& extension_id) override; 50 void RemoveExtensionData(const std::string& extension_id) override;
51 51
52 // Delete everything in the database. 52 // Delete everything in the database.
53 void DeleteDatabase() override; 53 void DeleteDatabase() override;
54 54
55 // Database table schema. 55 // Database table schema.
56 static const char* kTableName; 56 static const char kTableName[];
57 static const char* kTableContentFields[]; 57 static const char* const kTableContentFields[];
58 static const char* kTableFieldTypes[]; 58 static const char* const kTableFieldTypes[];
59 static const int kTableFieldCount; 59 static const int kTableFieldCount;
60 60
61 protected: 61 protected:
62 // Only ever run by OnDatabaseClose() below; see the comments on the 62 // Only ever run by OnDatabaseClose() below; see the comments on the
63 // ActivityDatabase class for an overall discussion of how cleanup works. 63 // ActivityDatabase class for an overall discussion of how cleanup works.
64 ~FullStreamUIPolicy() override; 64 ~FullStreamUIPolicy() override;
65 65
66 // The ActivityDatabase::Delegate interface. These are always called from 66 // The ActivityDatabase::Delegate interface. These are always called from
67 // the database thread. 67 // the database thread.
68 bool InitDatabase(sql::Connection* db) override; 68 bool InitDatabase(sql::Connection* db) override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 const Action::ActionType type, 108 const Action::ActionType type,
109 const std::string& api_name, 109 const std::string& api_name,
110 const std::string& page_url, 110 const std::string& page_url,
111 const std::string& arg_url, 111 const std::string& arg_url,
112 const int days_ago); 112 const int days_ago);
113 }; 113 };
114 114
115 } // namespace extensions 115 } // namespace extensions
116 116
117 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_ 117 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_FULLSTREAM_UI_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698