OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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__ |
OLD | NEW |