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 #include "chrome/browser/automation/automation_provider_observers.h" | 5 #include "chrome/browser/automation/automation_provider_observers.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 49 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
50 #include "chrome/browser/translate/page_translated_details.h" | 50 #include "chrome/browser/translate/page_translated_details.h" |
51 #include "chrome/browser/translate/translate_infobar_delegate.h" | 51 #include "chrome/browser/translate/translate_infobar_delegate.h" |
52 #include "chrome/browser/ui/browser.h" | 52 #include "chrome/browser/ui/browser.h" |
53 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 53 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
54 #include "chrome/browser/ui/login/login_prompt.h" | 54 #include "chrome/browser/ui/login/login_prompt.h" |
55 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 55 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
56 #include "chrome/common/automation_constants.h" | 56 #include "chrome/common/automation_constants.h" |
57 #include "chrome/common/extensions/extension.h" | 57 #include "chrome/common/extensions/extension.h" |
58 #include "chrome/common/notification_service.h" | 58 #include "chrome/common/notification_service.h" |
59 #include "gfx/codec/png_codec.h" | |
60 #include "gfx/rect.h" | |
61 #include "googleurl/src/gurl.h" | 59 #include "googleurl/src/gurl.h" |
| 60 #include "ui/gfx/codec/png_codec.h" |
| 61 #include "ui/gfx/rect.h" |
62 | 62 |
63 #if defined(OS_CHROMEOS) | 63 #if defined(OS_CHROMEOS) |
64 #include "chrome/browser/chromeos/login/authentication_notification_details.h" | 64 #include "chrome/browser/chromeos/login/authentication_notification_details.h" |
65 #endif | 65 #endif |
66 | 66 |
67 // Holds onto start and stop timestamps for a particular tab | 67 // Holds onto start and stop timestamps for a particular tab |
68 class InitialLoadObserver::TabTime { | 68 class InitialLoadObserver::TabTime { |
69 public: | 69 public: |
70 explicit TabTime(base::TimeTicks started) | 70 explicit TabTime(base::TimeTicks started) |
71 : load_start_time_(started) { | 71 : load_start_time_(started) { |
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1722 BrowserThread::PROCESS_LAUNCHER, FROM_HERE, | 1722 BrowserThread::PROCESS_LAUNCHER, FROM_HERE, |
1723 NewRunnableMethod( | 1723 NewRunnableMethod( |
1724 this, | 1724 this, |
1725 &WaitForProcessLauncherThreadToGoIdleObserver::RunOnUIThread)); | 1725 &WaitForProcessLauncherThreadToGoIdleObserver::RunOnUIThread)); |
1726 } | 1726 } |
1727 | 1727 |
1728 void WaitForProcessLauncherThreadToGoIdleObserver::RunOnUIThread() { | 1728 void WaitForProcessLauncherThreadToGoIdleObserver::RunOnUIThread() { |
1729 automation_->Send(reply_message_); | 1729 automation_->Send(reply_message_); |
1730 Release(); | 1730 Release(); |
1731 } | 1731 } |
OLD | NEW |