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

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: Also convert call-sites in the Windows specific methods of this class. 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
« no previous file with comments | « no previous file | chrome/browser/webdata/web_data_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback_forward.h" 13 #include "base/callback_forward.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/location.h"
15 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
16 #include "base/synchronization/lock.h" 17 #include "base/synchronization/lock.h"
17 #include "chrome/browser/search_engines/template_url_id.h" 18 #include "chrome/browser/search_engines/template_url_id.h"
18 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
19 #include "sql/init_status.h" 20 #include "sql/init_status.h"
20 21
21 class AutocompleteSyncableService; 22 class AutocompleteSyncableService;
22 class AutofillChange; 23 class AutofillChange;
23 class AutofillProfile; 24 class AutofillProfile;
24 class AutofillProfileSyncableService; 25 class AutofillProfileSyncableService;
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 // Commit any pending transaction and deletes the database. 586 // Commit any pending transaction and deletes the database.
586 void ShutdownDatabase(); 587 void ShutdownDatabase();
587 588
588 // Deletes the syncable services. 589 // Deletes the syncable services.
589 void ShutdownSyncableServices(); 590 void ShutdownSyncableServices();
590 591
591 // Commit the current transaction and creates a new one. 592 // Commit the current transaction and creates a new one.
592 void Commit(); 593 void Commit();
593 594
594 // Schedule a task on our worker thread. 595 // Schedule a task on our worker thread.
595 void ScheduleTask(const base::Closure& task); 596 void ScheduleTask(const tracked_objects::Location& from_here,
597 const base::Closure& task);
596 598
597 // Schedule a commit if one is not already pending. 599 // Schedule a commit if one is not already pending.
598 void ScheduleCommit(); 600 void ScheduleCommit();
599 601
600 // Return the next request handle. 602 // Return the next request handle.
601 int GetNextRequestHandle(); 603 int GetNextRequestHandle();
602 604
603 ////////////////////////////////////////////////////////////////////////////// 605 //////////////////////////////////////////////////////////////////////////////
604 // 606 //
605 // Keywords. 607 // 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 748 // 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. 749 // not be opened. The result object is destroyed after this call.
748 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 750 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
749 const WDTypedResult* result) = 0; 751 const WDTypedResult* result) = 0;
750 752
751 protected: 753 protected:
752 virtual ~WebDataServiceConsumer() {} 754 virtual ~WebDataServiceConsumer() {}
753 }; 755 };
754 756
755 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 757 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698