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

Side by Side Diff: chrome/browser/thumbnails/thumbnail_tab_helper.h

Issue 2882183002: Thumbnails: Add some perf UMA (Closed)
Patch Set: no more using Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/thumbnails/thumbnail_tab_helper.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_
6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_ 6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h"
10 #include "chrome/browser/thumbnails/thumbnailing_context.h" 11 #include "chrome/browser/thumbnails/thumbnailing_context.h"
11 #include "content/public/browser/notification_observer.h" 12 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 13 #include "content/public/browser/notification_registrar.h"
13 #include "content/public/browser/readback_types.h" 14 #include "content/public/browser/readback_types.h"
14 #include "content/public/browser/web_contents_observer.h" 15 #include "content/public/browser/web_contents_observer.h"
15 #include "content/public/browser/web_contents_user_data.h" 16 #include "content/public/browser/web_contents_user_data.h"
16 17
17 namespace content { 18 namespace content {
18 class RenderViewHost; 19 class RenderViewHost;
19 class RenderWidgetHost; 20 class RenderWidgetHost;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 65
65 // Called when a render view host was created for a WebContents. 66 // Called when a render view host was created for a WebContents.
66 void RenderViewHostCreated(content::RenderViewHost* renderer); 67 void RenderViewHostCreated(content::RenderViewHost* renderer);
67 68
68 // Indicates that the given widget has changed is visibility. 69 // Indicates that the given widget has changed is visibility.
69 void WidgetHidden(content::RenderWidgetHost* widget); 70 void WidgetHidden(content::RenderWidgetHost* widget);
70 71
71 const bool capture_on_load_finished_; 72 const bool capture_on_load_finished_;
72 73
73 content::NotificationRegistrar registrar_; 74 content::NotificationRegistrar registrar_;
75
76 bool load_interrupted_;
77
74 scoped_refptr<thumbnails::ThumbnailingContext> thumbnailing_context_; 78 scoped_refptr<thumbnails::ThumbnailingContext> thumbnailing_context_;
75 79
76 bool load_interrupted_; 80 base::TimeTicks copy_from_surface_start_time_;
81 base::TimeTicks process_bitmap_start_time_;
77 82
78 base::WeakPtrFactory<ThumbnailTabHelper> weak_factory_; 83 base::WeakPtrFactory<ThumbnailTabHelper> weak_factory_;
79 84
80 DISALLOW_COPY_AND_ASSIGN(ThumbnailTabHelper); 85 DISALLOW_COPY_AND_ASSIGN(ThumbnailTabHelper);
81 }; 86 };
82 87
83 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_ 88 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/thumbnails/thumbnail_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698