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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 #include "content/browser/renderer_host/render_view_host.h" 75 #include "content/browser/renderer_host/render_view_host.h"
76 #include "content/browser/tab_contents/navigation_controller.h" 76 #include "content/browser/tab_contents/navigation_controller.h"
77 #include "content/browser/tab_contents/tab_contents.h" 77 #include "content/browser/tab_contents/tab_contents.h"
78 #include "content/common/child_process_info.h" 78 #include "content/common/child_process_info.h"
79 #include "content/public/browser/notification_service.h" 79 #include "content/public/browser/notification_service.h"
80 #include "googleurl/src/gurl.h" 80 #include "googleurl/src/gurl.h"
81 #include "third_party/skia/include/core/SkBitmap.h" 81 #include "third_party/skia/include/core/SkBitmap.h"
82 #include "ui/gfx/codec/png_codec.h" 82 #include "ui/gfx/codec/png_codec.h"
83 #include "ui/gfx/rect.h" 83 #include "ui/gfx/rect.h"
84 84
85 using content::BrowserThread;
86
85 // Holds onto start and stop timestamps for a particular tab 87 // Holds onto start and stop timestamps for a particular tab
86 class InitialLoadObserver::TabTime { 88 class InitialLoadObserver::TabTime {
87 public: 89 public:
88 explicit TabTime(base::TimeTicks started) 90 explicit TabTime(base::TimeTicks started)
89 : load_start_time_(started) { 91 : load_start_time_(started) {
90 } 92 }
91 void set_stop_time(base::TimeTicks stopped) { 93 void set_stop_time(base::TimeTicks stopped) {
92 load_stop_time_ = stopped; 94 load_stop_time_ = stopped;
93 } 95 }
94 base::TimeTicks stop_time() const { 96 base::TimeTicks stop_time() const {
(...skipping 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after
2898 if (automation_) { 2900 if (automation_) {
2899 AutomationJSONReply(automation_, reply_message_.release()) 2901 AutomationJSONReply(automation_, reply_message_.release())
2900 .SendSuccess(NULL); 2902 .SendSuccess(NULL);
2901 } 2903 }
2902 delete this; 2904 delete this;
2903 } 2905 }
2904 } else { 2906 } else {
2905 NOTREACHED(); 2907 NOTREACHED();
2906 } 2908 }
2907 } 2909 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.h ('k') | chrome/browser/automation/automation_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698