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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 // cookies or not. Currently, only downloads without cookies are supported. | 537 // cookies or not. Currently, only downloads without cookies are supported. |
538 // |bypass_cache| is ignored since the downloads never go through a cache. | 538 // |bypass_cache| is ignored since the downloads never go through a cache. |
539 DCHECK(is_favicon); | 539 DCHECK(is_favicon); |
540 return [[web_controller_ delegate] downloadImageAtUrl:url | 540 return [[web_controller_ delegate] downloadImageAtUrl:url |
541 maxBitmapSize:max_bitmap_size | 541 maxBitmapSize:max_bitmap_size |
542 callback:callback]; | 542 callback:callback]; |
543 } | 543 } |
544 | 544 |
545 service_manager::InterfaceRegistry* WebStateImpl::GetMojoInterfaceRegistry() { | 545 service_manager::InterfaceRegistry* WebStateImpl::GetMojoInterfaceRegistry() { |
546 if (!mojo_interface_registry_) { | 546 if (!mojo_interface_registry_) { |
547 mojo_interface_registry_.reset(new service_manager::InterfaceRegistry); | 547 mojo_interface_registry_.reset(new service_manager::InterfaceRegistry( |
| 548 service_manager::Identity(), service_manager::InterfaceProviderSpec())); |
548 } | 549 } |
549 return mojo_interface_registry_.get(); | 550 return mojo_interface_registry_.get(); |
550 } | 551 } |
551 | 552 |
552 base::WeakPtr<WebState> WebStateImpl::AsWeakPtr() { | 553 base::WeakPtr<WebState> WebStateImpl::AsWeakPtr() { |
553 return weak_factory_.GetWeakPtr(); | 554 return weak_factory_.GetWeakPtr(); |
554 } | 555 } |
555 | 556 |
556 #pragma mark - WebState implementation | 557 #pragma mark - WebState implementation |
557 | 558 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 const LoadCommittedDetails& load_details) { | 702 const LoadCommittedDetails& load_details) { |
702 for (auto& observer : observers_) | 703 for (auto& observer : observers_) |
703 observer.NavigationItemCommitted(load_details); | 704 observer.NavigationItemCommitted(load_details); |
704 } | 705 } |
705 | 706 |
706 WebState* WebStateImpl::GetWebState() { | 707 WebState* WebStateImpl::GetWebState() { |
707 return this; | 708 return this; |
708 } | 709 } |
709 | 710 |
710 } // namespace web | 711 } // namespace web |
OLD | NEW |