| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/web_state/web_state_impl.h" | 5 #include "ios/web/web_state/web_state_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "ios/web/public/web_state/web_state_delegate.h" | 25 #include "ios/web/public/web_state/web_state_delegate.h" |
| 26 #include "ios/web/public/web_state/web_state_observer.h" | 26 #include "ios/web/public/web_state/web_state_observer.h" |
| 27 #include "ios/web/public/web_state/web_state_policy_decider.h" | 27 #include "ios/web/public/web_state/web_state_policy_decider.h" |
| 28 #include "ios/web/web_state/global_web_state_event_tracker.h" | 28 #include "ios/web/web_state/global_web_state_event_tracker.h" |
| 29 #import "ios/web/web_state/ui/crw_web_controller.h" | 29 #import "ios/web/web_state/ui/crw_web_controller.h" |
| 30 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" | 30 #import "ios/web/web_state/ui/crw_web_controller_container_view.h" |
| 31 #include "ios/web/web_state/web_state_facade_delegate.h" | 31 #include "ios/web/web_state/web_state_facade_delegate.h" |
| 32 #import "ios/web/webui/web_ui_ios_controller_factory_registry.h" | 32 #import "ios/web/webui/web_ui_ios_controller_factory_registry.h" |
| 33 #import "ios/web/webui/web_ui_ios_impl.h" | 33 #import "ios/web/webui/web_ui_ios_impl.h" |
| 34 #include "net/http/http_response_headers.h" | 34 #include "net/http/http_response_headers.h" |
| 35 #include "services/shell/public/cpp/interface_registry.h" | 35 #include "services/service_manager/public/cpp/interface_registry.h" |
| 36 | 36 |
| 37 namespace web { | 37 namespace web { |
| 38 | 38 |
| 39 /* static */ | 39 /* static */ |
| 40 std::unique_ptr<WebState> WebState::Create(const CreateParams& params) { | 40 std::unique_ptr<WebState> WebState::Create(const CreateParams& params) { |
| 41 std::unique_ptr<WebStateImpl> web_state( | 41 std::unique_ptr<WebStateImpl> web_state( |
| 42 new WebStateImpl(params.browser_state)); | 42 new WebStateImpl(params.browser_state)); |
| 43 | 43 |
| 44 NSString* window_name = nil; | 44 NSString* window_name = nil; |
| 45 NSString* opener_id = nil; | 45 NSString* opener_id = nil; |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 const LoadCommittedDetails& load_details) { | 690 const LoadCommittedDetails& load_details) { |
| 691 FOR_EACH_OBSERVER(WebStateObserver, observers_, | 691 FOR_EACH_OBSERVER(WebStateObserver, observers_, |
| 692 NavigationItemCommitted(load_details)); | 692 NavigationItemCommitted(load_details)); |
| 693 } | 693 } |
| 694 | 694 |
| 695 WebState* WebStateImpl::GetWebState() { | 695 WebState* WebStateImpl::GetWebState() { |
| 696 return this; | 696 return this; |
| 697 } | 697 } |
| 698 | 698 |
| 699 } // namespace web | 699 } // namespace web |
| OLD | NEW |