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

Unified Diff: content/renderer/load_progress_tracker.h

Issue 263973003: Move LoadProgressTracker to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: final comment Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/load_progress_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/load_progress_tracker.h
diff --git a/content/renderer/load_progress_tracker.h b/content/renderer/load_progress_tracker.h
deleted file mode 100644
index 72a711ccc5ee77117299a37ff33bd70c5650dde3..0000000000000000000000000000000000000000
--- a/content/renderer/load_progress_tracker.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_RENDERER_LOAD_PROGRESS_TRACKER_H_
-#define CONTENT_RENDERER_LOAD_PROGRESS_TRACKER_H_
-
-#include "base/containers/hash_tables.h"
-#include "base/logging.h"
-#include "base/memory/weak_ptr.h"
-#include "base/time/time.h"
-
-namespace content {
-class RenderViewImpl;
-
-class LoadProgressTracker {
- public:
- explicit LoadProgressTracker(RenderViewImpl* render_view);
- ~LoadProgressTracker();
-
- void DidStartLoading(int frame_routing_id);
- void DidStopLoading(int frame_routing_id);
-
- void DidChangeLoadProgress(int frame_routing_id, double progress);
-
- private:
- void ResetStates();
-
- void SendChangeLoadProgress();
-
- RenderViewImpl* render_view_;
-
- // ProgressMap maps RenderFrame routing ids to a double representing that
- // frame's completion (from 0 to 1).
- typedef base::hash_map<int, double> ProgressMap;
- ProgressMap progresses_;
- double total_progress_;
-
- base::TimeTicks last_time_progress_sent_;
-
- base::WeakPtrFactory<LoadProgressTracker> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(LoadProgressTracker);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_LOAD_PROGRESS_TRACKER_H_
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/load_progress_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698