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

Side by Side Diff: chrome/browser/webdata/web_data_service.h

Issue 8745017: Disambiguate origins of tasks posted by the WebDataService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 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 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 6 #define CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 // Commit any pending transaction and deletes the database. 585 // Commit any pending transaction and deletes the database.
586 void ShutdownDatabase(); 586 void ShutdownDatabase();
587 587
588 // Deletes the syncable services. 588 // Deletes the syncable services.
589 void ShutdownSyncableServices(); 589 void ShutdownSyncableServices();
590 590
591 // Commit the current transaction and creates a new one. 591 // Commit the current transaction and creates a new one.
592 void Commit(); 592 void Commit();
593 593
594 // Schedule a task on our worker thread. 594 // Schedule a task on our worker thread.
595 void ScheduleTask(const base::Closure& task); 595 void ScheduleTask(
596 const tracked_objects::Location& from_here, const base::Closure& task);
sky 2011/11/30 17:59:58 nit: when you wrap, each param on its own line.
erikwright (departed) 2011/11/30 20:13:54 Done.
596 597
597 // Schedule a commit if one is not already pending. 598 // Schedule a commit if one is not already pending.
598 void ScheduleCommit(); 599 void ScheduleCommit();
599 600
600 // Return the next request handle. 601 // Return the next request handle.
601 int GetNextRequestHandle(); 602 int GetNextRequestHandle();
602 603
603 ////////////////////////////////////////////////////////////////////////////// 604 //////////////////////////////////////////////////////////////////////////////
604 // 605 //
605 // Keywords. 606 // Keywords.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 // result can be NULL, if no result is expected or if the database could 747 // result can be NULL, if no result is expected or if the database could
747 // not be opened. The result object is destroyed after this call. 748 // not be opened. The result object is destroyed after this call.
748 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 749 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
749 const WDTypedResult* result) = 0; 750 const WDTypedResult* result) = 0;
750 751
751 protected: 752 protected:
752 virtual ~WebDataServiceConsumer() {} 753 virtual ~WebDataServiceConsumer() {}
753 }; 754 };
754 755
755 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 756 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/webdata/web_data_service.cc » ('j') | chrome/browser/webdata/web_data_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698