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

Side by Side Diff: content/renderer/load_progress_tracker.cc

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 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 | « content/renderer/load_progress_tracker.h ('k') | content/renderer/media/audio_hardware.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 #include "content/renderer/load_progress_tracker.h" 5 #include "content/renderer/load_progress_tracker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
10 #include "content/renderer/render_view_impl.h" 10 #include "content/renderer/render_view_impl.h"
11 11
12 namespace content {
12 namespace { 13 namespace {
13 14
14 const int kMinimumDelayBetweenUpdatesMS = 100; 15 const int kMinimumDelayBetweenUpdatesMS = 100;
15 16
16 } 17 }
17 18
18 LoadProgressTracker::LoadProgressTracker(RenderViewImpl* render_view) 19 LoadProgressTracker::LoadProgressTracker(RenderViewImpl* render_view)
19 : render_view_(render_view), 20 : render_view_(render_view),
20 tracked_frame_(NULL), 21 tracked_frame_(NULL),
21 progress_(0.0), 22 progress_(0.0),
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 new ViewHostMsg_DidChangeLoadProgress(render_view_->routing_id(), 81 new ViewHostMsg_DidChangeLoadProgress(render_view_->routing_id(),
81 progress_)); 82 progress_));
82 } 83 }
83 84
84 void LoadProgressTracker::ResetStates() { 85 void LoadProgressTracker::ResetStates() {
85 tracked_frame_ = NULL; 86 tracked_frame_ = NULL;
86 progress_ = 0.0; 87 progress_ = 0.0;
87 weak_factory_.InvalidateWeakPtrs(); 88 weak_factory_.InvalidateWeakPtrs();
88 last_time_progress_sent_ = base::TimeTicks(); 89 last_time_progress_sent_ = base::TimeTicks();
89 } 90 }
91
92 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/load_progress_tracker.h ('k') | content/renderer/media/audio_hardware.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698