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

Unified Diff: chrome/browser/webdata/web_data_service.cc

Issue 7930002: Rename WebIntentData for backend storage to WebIntentServiceData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix class/struct decl Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/webdata/web_data_service.h ('k') | chrome/browser/webdata/web_data_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/web_data_service.cc
diff --git a/chrome/browser/webdata/web_data_service.cc b/chrome/browser/webdata/web_data_service.cc
index b8522f36e46bb07dc470e4a1d2ef63340080241c..1f6e6ce89490fc0131686beab5f55897c2a0041a 100644
--- a/chrome/browser/webdata/web_data_service.cc
+++ b/chrome/browser/webdata/web_data_service.cc
@@ -221,17 +221,19 @@ WebDataService::Handle WebDataService::GetWebAppImages(
//
//////////////////////////////////////////////////////////////////////////////
-void WebDataService::AddWebIntent(const WebIntentData& intent) {
- GenericRequest<WebIntentData>* request = new GenericRequest<WebIntentData>(
- this, GetNextRequestHandle(), NULL, intent);
+void WebDataService::AddWebIntent(const WebIntentServiceData& service) {
+ GenericRequest<WebIntentServiceData>* request =
+ new GenericRequest<WebIntentServiceData>(
+ this, GetNextRequestHandle(), NULL, service);
RegisterRequest(request);
ScheduleTask(NewRunnableMethod(this, &WebDataService::AddWebIntentImpl,
request));
}
-void WebDataService::RemoveWebIntent(const WebIntentData& intent) {
- GenericRequest<WebIntentData>* request = new GenericRequest<WebIntentData>(
- this, GetNextRequestHandle(), NULL, intent);
+void WebDataService::RemoveWebIntent(const WebIntentServiceData& service) {
+ GenericRequest<WebIntentServiceData>* request =
+ new GenericRequest<WebIntentServiceData>(
+ this, GetNextRequestHandle(), NULL, service);
RegisterRequest(request);
ScheduleTask(NewRunnableMethod(this, &WebDataService::RemoveWebIntentImpl,
request));
@@ -841,21 +843,22 @@ void WebDataService::GetWebAppImagesImpl(GenericRequest<GURL>* request) {
////////////////////////////////////////////////////////////////////////////////
void WebDataService::RemoveWebIntentImpl(
- GenericRequest<WebIntentData>* request) {
+ GenericRequest<WebIntentServiceData>* request) {
InitializeDatabaseIfNecessary();
if (db_ && !request->IsCancelled(NULL)) {
- const WebIntentData& intent = request->arg();
- db_->GetWebIntentsTable()->RemoveWebIntent(intent);
+ const WebIntentServiceData& service = request->arg();
+ db_->GetWebIntentsTable()->RemoveWebIntent(service);
ScheduleCommit();
}
request->RequestComplete();
}
-void WebDataService::AddWebIntentImpl(GenericRequest<WebIntentData>* request) {
+void WebDataService::AddWebIntentImpl(
+ GenericRequest<WebIntentServiceData>* request) {
InitializeDatabaseIfNecessary();
if (db_ && !request->IsCancelled(NULL)) {
- const WebIntentData& intent = request->arg();
- db_->GetWebIntentsTable()->SetWebIntent(intent);
+ const WebIntentServiceData& service = request->arg();
+ db_->GetWebIntentsTable()->SetWebIntent(service);
ScheduleCommit();
}
request->RequestComplete();
@@ -865,10 +868,11 @@ void WebDataService::AddWebIntentImpl(GenericRequest<WebIntentData>* request) {
void WebDataService::GetWebIntentsImpl(GenericRequest<string16>* request) {
InitializeDatabaseIfNecessary();
if (db_ && !request->IsCancelled(NULL)) {
- std::vector<WebIntentData> result;
+ std::vector<WebIntentServiceData> result;
db_->GetWebIntentsTable()->GetWebIntents(request->arg(), &result);
request->SetResult(
- new WDResult<std::vector<WebIntentData> >(WEB_INTENTS_RESULT, result));
+ new WDResult<std::vector<WebIntentServiceData> >(
+ WEB_INTENTS_RESULT, result));
}
request->RequestComplete();
}
@@ -877,10 +881,11 @@ void WebDataService::GetAllWebIntentsImpl(
GenericRequest<std::string>* request) {
InitializeDatabaseIfNecessary();
if (db_ && !request->IsCancelled(NULL)) {
- std::vector<WebIntentData> result;
+ std::vector<WebIntentServiceData> result;
db_->GetWebIntentsTable()->GetAllWebIntents(&result);
request->SetResult(
- new WDResult<std::vector<WebIntentData> >(WEB_INTENTS_RESULT, result));
+ new WDResult<std::vector<WebIntentServiceData> >(
+ WEB_INTENTS_RESULT, result));
}
request->RequestComplete();
}
« no previous file with comments | « chrome/browser/webdata/web_data_service.h ('k') | chrome/browser/webdata/web_data_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698