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 "chrome/browser/automation/automation_provider.h" | 5 #include "chrome/browser/automation/automation_provider.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "base/thread.h" | 9 #include "base/thread.h" |
10 #include "chrome/app/chrome_dll_resource.h" | 10 #include "chrome/app/chrome_dll_resource.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/tab_contents/web_contents_view.h" | 30 #include "chrome/browser/tab_contents/web_contents_view.h" |
31 #include "chrome/browser/views/bookmark_bar_view.h" | 31 #include "chrome/browser/views/bookmark_bar_view.h" |
32 #include "chrome/browser/views/location_bar_view.h" | 32 #include "chrome/browser/views/location_bar_view.h" |
33 #include "chrome/common/chrome_paths.h" | 33 #include "chrome/common/chrome_paths.h" |
34 #include "chrome/common/notification_registrar.h" | 34 #include "chrome/common/notification_registrar.h" |
35 #include "chrome/common/pref_service.h" | 35 #include "chrome/common/pref_service.h" |
36 #include "chrome/views/app_modal_dialog_delegate.h" | 36 #include "chrome/views/app_modal_dialog_delegate.h" |
37 #include "chrome/views/window.h" | 37 #include "chrome/views/window.h" |
38 #include "chrome/test/automation/automation_messages.h" | 38 #include "chrome/test/automation/automation_messages.h" |
39 #include "net/base/cookie_monster.h" | 39 #include "net/base/cookie_monster.h" |
| 40 #include "net/url_request/url_request_context.h" |
40 #include "net/url_request/url_request_filter.h" | 41 #include "net/url_request/url_request_filter.h" |
41 | 42 |
42 using base::Time; | 43 using base::Time; |
43 | 44 |
44 class InitialLoadObserver : public NotificationObserver { | 45 class InitialLoadObserver : public NotificationObserver { |
45 public: | 46 public: |
46 InitialLoadObserver(size_t tab_count, AutomationProvider* automation) | 47 InitialLoadObserver(size_t tab_count, AutomationProvider* automation) |
47 : outstanding_tab_count_(tab_count), | 48 : outstanding_tab_count_(tab_count), |
48 automation_(automation) { | 49 automation_(automation) { |
49 if (outstanding_tab_count_ > 0) { | 50 if (outstanding_tab_count_ > 0) { |
(...skipping 2541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2591 browser->OverrideEncoding(selected_encoding_id); | 2592 browser->OverrideEncoding(selected_encoding_id); |
2592 *success = true; | 2593 *success = true; |
2593 } | 2594 } |
2594 } | 2595 } |
2595 } | 2596 } |
2596 } | 2597 } |
2597 | 2598 |
2598 void AutomationProvider::SavePackageShouldPromptUser(bool should_prompt) { | 2599 void AutomationProvider::SavePackageShouldPromptUser(bool should_prompt) { |
2599 SavePackage::SetShouldPromptUser(should_prompt); | 2600 SavePackage::SetShouldPromptUser(should_prompt); |
2600 } | 2601 } |
OLD | NEW |