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

Side by Side Diff: chrome/renderer/load_progress_tracker.h

Issue 6685072: Move a bunch more random files from chrome\renderer to content\renderer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/external_host_bindings.h ('k') | chrome/renderer/load_progress_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_LOAD_PROGRESS_TRACKER_H_
6 #define CHROME_RENDERER_LOAD_PROGRESS_TRACKER_H_
7
8 #include "base/logging.h"
9 #include "base/task.h"
10 #include "base/time.h"
11
12 class RenderView;
13
14 namespace WebKit {
15 class WebFrame;
16 }
17
18 class LoadProgressTracker {
19 public:
20 explicit LoadProgressTracker(RenderView* render_view);
21 ~LoadProgressTracker();
22
23 void DidStopLoading();
24
25 void DidChangeLoadProgress(WebKit::WebFrame* frame, double progress);
26
27 private:
28 void ResetStates();
29
30 void SendChangeLoadProgress();
31
32 RenderView* render_view_;
33
34 WebKit::WebFrame* tracked_frame_;
35
36 double progress_;
37
38 base::TimeTicks last_time_progress_sent_;
39
40 ScopedRunnableMethodFactory<LoadProgressTracker> method_factory_;
41
42 DISALLOW_COPY_AND_ASSIGN(LoadProgressTracker);
43 };
44
45 #endif // CHROME_RENDERER_LOAD_PROGRESS_TRACKER_H_
46
OLDNEW
« no previous file with comments | « chrome/renderer/external_host_bindings.h ('k') | chrome/renderer/load_progress_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698