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

Side by Side Diff: ios/web/web_state/web_state_observer.mm

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ios/web/public/web_state/web_state_observer.h" 5 #include "ios/web/public/web_state/web_state_observer.h"
6 6
7 #include "ios/web/public/load_committed_details.h" 7 #include "ios/web/public/load_committed_details.h"
8 #include "ios/web/public/web_state/web_state.h" 8 #import "ios/web/public/web_state/web_state.h"
9 9
10 namespace web { 10 namespace web {
11 11
12 WebStateObserver::WebStateObserver(WebState* web_state) : web_state_(nullptr) { 12 WebStateObserver::WebStateObserver(WebState* web_state) : web_state_(nullptr) {
13 Observe(web_state); 13 Observe(web_state);
14 } 14 }
15 15
16 WebStateObserver::WebStateObserver() : web_state_(nullptr) {} 16 WebStateObserver::WebStateObserver() : web_state_(nullptr) {}
17 17
18 WebStateObserver::~WebStateObserver() { 18 WebStateObserver::~WebStateObserver() {
(...skipping 12 matching lines...) Expand all
31 if (web_state_) 31 if (web_state_)
32 web_state_->AddObserver(this); 32 web_state_->AddObserver(this);
33 } 33 }
34 34
35 void WebStateObserver::ResetWebState() { 35 void WebStateObserver::ResetWebState() {
36 web_state_->RemoveObserver(this); 36 web_state_->RemoveObserver(this);
37 web_state_ = nullptr; 37 web_state_ = nullptr;
38 } 38 }
39 39
40 } // namespace web 40 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698