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

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

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <vector> 10 #include <vector>
11 11
12 #include "app/sql/init_status.h" 12 #include "app/sql/init_status.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/lock.h"
15 #include "base/ref_counted.h" 14 #include "base/ref_counted.h"
15 #include "base/synchronization/lock.h"
16 #include "chrome/browser/browser_thread.h" 16 #include "chrome/browser/browser_thread.h"
17 #include "chrome/browser/search_engines/template_url_id.h" 17 #include "chrome/browser/search_engines/template_url_id.h"
18 #include "webkit/glue/form_field.h" 18 #include "webkit/glue/form_field.h"
19 19
20 class AutofillChange; 20 class AutofillChange;
21 class AutoFillProfile; 21 class AutoFillProfile;
22 class CreditCard; 22 class CreditCard;
23 class GURL; 23 class GURL;
24 #if defined(OS_WIN) 24 #if defined(OS_WIN)
25 struct IE7PasswordInfo; 25 struct IE7PasswordInfo;
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 WebDatabase* db_; 620 WebDatabase* db_;
621 621
622 // Whether the database failed to initialize. We use this to avoid 622 // Whether the database failed to initialize. We use this to avoid
623 // continually trying to reinit. 623 // continually trying to reinit.
624 bool failed_init_; 624 bool failed_init_;
625 625
626 // Whether we should commit the database. 626 // Whether we should commit the database.
627 bool should_commit_; 627 bool should_commit_;
628 628
629 // A lock to protect pending requests and next request handle. 629 // A lock to protect pending requests and next request handle.
630 Lock pending_lock_; 630 base::Lock pending_lock_;
631 631
632 // Next handle to be used for requests. Incremented for each use. 632 // Next handle to be used for requests. Incremented for each use.
633 Handle next_request_handle_; 633 Handle next_request_handle_;
634 634
635 typedef std::map<Handle, WebDataRequest*> RequestMap; 635 typedef std::map<Handle, WebDataRequest*> RequestMap;
636 RequestMap pending_requests_; 636 RequestMap pending_requests_;
637 637
638 // MessageLoop the WebDataService is created on. 638 // MessageLoop the WebDataService is created on.
639 MessageLoop* main_loop_; 639 MessageLoop* main_loop_;
640 640
(...skipping 16 matching lines...) Expand all
657 // result can be NULL, if no result is expected or if the database could 657 // result can be NULL, if no result is expected or if the database could
658 // not be opened. The result object is destroyed after this call. 658 // not be opened. The result object is destroyed after this call.
659 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h, 659 virtual void OnWebDataServiceRequestDone(WebDataService::Handle h,
660 const WDTypedResult* result) = 0; 660 const WDTypedResult* result) = 0;
661 661
662 protected: 662 protected:
663 virtual ~WebDataServiceConsumer() {} 663 virtual ~WebDataServiceConsumer() {}
664 }; 664 };
665 665
666 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__ 666 #endif // CHROME_BROWSER_WEBDATA_WEB_DATA_SERVICE_H__
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/webdata/web_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698