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

Unified Diff: blimp/engine/session/page_load_tracker.h

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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 | « blimp/engine/session/blimp_engine_session.cc ('k') | blimp/engine/session/page_load_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/session/page_load_tracker.h
diff --git a/blimp/engine/session/page_load_tracker.h b/blimp/engine/session/page_load_tracker.h
deleted file mode 100644
index 55d509a0d8b5a48c0aefa358a51f726eeaaf5c85..0000000000000000000000000000000000000000
--- a/blimp/engine/session/page_load_tracker.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2016 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 BLIMP_ENGINE_SESSION_PAGE_LOAD_TRACKER_H_
-#define BLIMP_ENGINE_SESSION_PAGE_LOAD_TRACKER_H_
-
-#include "base/cancelable_callback.h"
-#include "base/macros.h"
-#include "content/public/browser/render_frame_host.h"
-#include "content/public/browser/render_widget_host.h"
-#include "content/public/browser/web_contents_observer.h"
-
-namespace blimp {
-namespace engine {
-
-enum class PageLoadStatus { LOADING, LOADED };
-
-class PageLoadTrackerClient {
- public:
- virtual ~PageLoadTrackerClient() {}
-
- // Called when a navigation status update should be sent to the client.
- // |load_status| indicates the status of the navigation. An update with a
- // |LOADING| value is sent each time a new navigation is initiated. This
- // update will be followed by a |LOADED| value when the navigation either
- // successfully finishes or fails.
- virtual void SendPageLoadStatusUpdate(PageLoadStatus load_status) = 0;
-};
-
-// Tracks the page load status for a tab using load and paint notifications
-// from the renderer.
-class PageLoadTracker : public content::WebContentsObserver {
- public:
- explicit PageLoadTracker(content::WebContents* web_contents,
- PageLoadTrackerClient* client);
- ~PageLoadTracker() override;
-
- private:
- // content::WebContentsObserver implementation.
- void DidStartNavigation(
- content::NavigationHandle* navigation_handle) override;
- void DidFinishNavigation(
- content::NavigationHandle* navigation_handle) override;
-
- // Invoked when the renderer has performed at least one paint after the
- // navigation was committed.
- void DidPaintAfterNavigationCommitted(bool result);
-
- base::CancelableCallback<void(bool)> did_paint_after_navigation_callback_;
-
- PageLoadTrackerClient* client_;
-
- DISALLOW_COPY_AND_ASSIGN(PageLoadTracker);
-};
-
-} // namespace engine
-} // namespace blimp
-
-#endif // BLIMP_ENGINE_SESSION_PAGE_LOAD_TRACKER_H_
« no previous file with comments | « blimp/engine/session/blimp_engine_session.cc ('k') | blimp/engine/session/page_load_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698