| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include <windows.h> | 5 #include <windows.h> |
| 6 | 6 |
| 7 #include "chrome/browser/webdata/web_data_service.h" | 7 #include "chrome/browser/webdata/web_data_service.h" |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "chrome/browser/ie7_password.h" | 12 #include "chrome/browser/ie7_password.h" |
| 13 #include "chrome/browser/template_url.h" | 13 #include "chrome/browser/template_url.h" |
| 14 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
| 15 #include "webkit/glue/password_form.h" | 15 #include "webkit/glue/password_form.h" |
| 16 | 16 |
| 17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
| 18 // | 18 // |
| 19 // WebDataService implementation. | 19 // WebDataService implementation. |
| 20 // | 20 // |
| 21 //////////////////////////////////////////////////////////////////////////////// | 21 //////////////////////////////////////////////////////////////////////////////// |
| 22 | 22 |
| 23 using base::Time; |
| 24 |
| 23 WebDataService::WebDataService() : should_commit_(false), | 25 WebDataService::WebDataService() : should_commit_(false), |
| 24 next_request_handle_(1), | 26 next_request_handle_(1), |
| 25 thread_(NULL), | 27 thread_(NULL), |
| 26 db_(NULL) { | 28 db_(NULL) { |
| 27 } | 29 } |
| 28 | 30 |
| 29 WebDataService::~WebDataService() { | 31 WebDataService::~WebDataService() { |
| 30 if (thread_) { | 32 if (thread_) { |
| 31 Shutdown(); | 33 Shutdown(); |
| 32 } | 34 } |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 &WebDataService::RequestCompleted, | 656 &WebDataService::RequestCompleted, |
| 655 handle_); | 657 handle_); |
| 656 message_loop_->PostTask(FROM_HERE, t); | 658 message_loop_->PostTask(FROM_HERE, t); |
| 657 } | 659 } |
| 658 | 660 |
| 659 int WebDataService::GetNextRequestHandle() { | 661 int WebDataService::GetNextRequestHandle() { |
| 660 AutoLock l(pending_lock_); | 662 AutoLock l(pending_lock_); |
| 661 return ++next_request_handle_; | 663 return ++next_request_handle_; |
| 662 } | 664 } |
| 663 | 665 |
| OLD | NEW |