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

Unified Diff: ios/chrome/browser/web/web_mediator.mm

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/web_mediator.h ('k') | ios/chrome/browser/web/web_mediator+internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/web_mediator.mm
diff --git a/ios/chrome/browser/web/web_mediator.mm b/ios/chrome/browser/web/web_mediator.mm
new file mode 100644
index 0000000000000000000000000000000000000000..6ea68410018feeaa675ee01f7df6fd08c83a445f
--- /dev/null
+++ b/ios/chrome/browser/web/web_mediator.mm
@@ -0,0 +1,33 @@
+// 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.
+
+// ====== New Architecture =====
+// = This code is only used in the new iOS Chrome architecture. =
+// ============================================================================
+
+#import "ios/chrome/browser/web/web_mediator+internal.h"
+#import "ios/chrome/browser/web/web_mediator.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@interface WebMediator ()
+@property(nonatomic, readwrite, assign) web::WebState* webState;
+@property(nonatomic, readwrite, strong) NSMutableDictionary* injectors;
+@end
+
+@implementation WebMediator
+@synthesize webState = _webState;
+@synthesize injectors = _injectors;
+
+- (instancetype)initWithWebState:(web::WebState*)webState {
+ if (self = [super init]) {
+ _webState = webState;
+ _injectors = [[NSMutableDictionary alloc] init];
+ }
+ return self;
+}
+
+@end
« no previous file with comments | « ios/chrome/browser/web/web_mediator.h ('k') | ios/chrome/browser/web/web_mediator+internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698