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

Side by Side Diff: chrome/browser/extensions/api/history/history_api.h

Issue 23785002: Clean up activity log URLs when history is cleaned. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Declare dependency Created 7 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_API_HISTORY_HISTORY_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // ProfileKeyedAPI implementation. 77 // ProfileKeyedAPI implementation.
78 static const char* service_name() { 78 static const char* service_name() {
79 return "HistoryAPI"; 79 return "HistoryAPI";
80 } 80 }
81 static const bool kServiceIsNULLWhileTesting = true; 81 static const bool kServiceIsNULLWhileTesting = true;
82 82
83 // Created lazily upon OnListenerAdded. 83 // Created lazily upon OnListenerAdded.
84 scoped_ptr<HistoryEventRouter> history_event_router_; 84 scoped_ptr<HistoryEventRouter> history_event_router_;
85 }; 85 };
86 86
87 template<>
88 void ProfileKeyedAPIFactory<HistoryAPI>::DeclareFactoryDependencies();
89
87 // Base class for history function APIs. 90 // Base class for history function APIs.
88 class HistoryFunction : public AsyncExtensionFunction { 91 class HistoryFunction : public AsyncExtensionFunction {
89 protected: 92 protected:
90 virtual ~HistoryFunction() {} 93 virtual ~HistoryFunction() {}
91 virtual void Run() OVERRIDE; 94 virtual void Run() OVERRIDE;
92 95
93 bool ValidateUrl(const std::string& url_string, GURL* url); 96 bool ValidateUrl(const std::string& url_string, GURL* url);
94 bool VerifyDeleteAllowed(); 97 bool VerifyDeleteAllowed();
95 base::Time GetTime(double ms_from_epoch); 98 base::Time GetTime(double ms_from_epoch);
96 }; 99 };
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // HistoryFunctionWithCallback: 222 // HistoryFunctionWithCallback:
220 virtual bool RunAsyncImpl() OVERRIDE; 223 virtual bool RunAsyncImpl() OVERRIDE;
221 224
222 // Callback for the history service to acknowledge deletion. 225 // Callback for the history service to acknowledge deletion.
223 void DeleteComplete(); 226 void DeleteComplete();
224 }; 227 };
225 228
226 } // namespace extensions 229 } // namespace extensions
227 230
228 #endif // CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_ 231 #endif // CHROME_BROWSER_EXTENSIONS_API_HISTORY_HISTORY_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/browsing_data_remover.cc ('k') | chrome/browser/extensions/api/history/history_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698