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

Unified Diff: ios/chrome/browser/web/auto_reload_bridge.h

Issue 2580333003: Upstream Chrome on iOS source code [10/11]. (Closed)
Patch Set: Created 4 years 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 | « ios/chrome/browser/web/README.md ('k') | ios/chrome/browser/web/auto_reload_bridge.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/auto_reload_bridge.h
diff --git a/ios/chrome/browser/web/auto_reload_bridge.h b/ios/chrome/browser/web/auto_reload_bridge.h
new file mode 100644
index 0000000000000000000000000000000000000000..6d7ae50a5ae53732998b6b76dc89890ac6cbdc1b
--- /dev/null
+++ b/ios/chrome/browser/web/auto_reload_bridge.h
@@ -0,0 +1,36 @@
+// Copyright 2014 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 IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_BRIDGE_H_
+#define IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_BRIDGE_H_
+
+#include <Foundation/Foundation.h>
+
+#include "ios/chrome/browser/web/auto_reload_controller.h"
+#include "url/gurl.h"
+
+@class Tab;
+
+// AutoReloadBridge is the interface between AutoReloadController and the
+// outside world and isolates AutoReloadController from its dependencies.
+// An AutoReloadBridge is responsible for network state tracking, for receiving
+// and passing on events from its owning Tab, and for passing reload requests
+// back to its owning Tab.
+@interface AutoReloadBridge : NSObject<AutoReloadDelegate>
+
+// Initialize an instance of this class owned by the supplied Tab, which must
+// not be nil.
+- (instancetype)initWithTab:(Tab*)tab;
+
+// Called by the owning Tab whenever a load starts.
+- (void)loadStartedForURL:(const GURL&)url;
+
+// Called by the owning Tab whenever a load finishes.
+- (void)loadFinishedForURL:(const GURL&)url wasPost:(BOOL)wasPost;
+
+// Called by the owning Tab whenever a load fails.
+- (void)loadFailedForURL:(const GURL&)url wasPost:(BOOL)wasPost;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_BRIDGE_H_
« no previous file with comments | « ios/chrome/browser/web/README.md ('k') | ios/chrome/browser/web/auto_reload_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698