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

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

Issue 2456493003: Add frame-specific InterfaceProviderSpec. (Closed)
Patch Set: . Created 4 years, 1 month 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 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
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(
548 service_manager::Identity(), service_manager::InterfaceProviderSpec())); 548 new service_manager::InterfaceRegistry(std::string()));
549 } 549 }
550 return mojo_interface_registry_.get(); 550 return mojo_interface_registry_.get();
551 } 551 }
552 552
553 base::WeakPtr<WebState> WebStateImpl::AsWeakPtr() { 553 base::WeakPtr<WebState> WebStateImpl::AsWeakPtr() {
554 return weak_factory_.GetWeakPtr(); 554 return weak_factory_.GetWeakPtr();
555 } 555 }
556 556
557 #pragma mark - WebState implementation 557 #pragma mark - WebState implementation
558 558
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 const LoadCommittedDetails& load_details) { 702 const LoadCommittedDetails& load_details) {
703 for (auto& observer : observers_) 703 for (auto& observer : observers_)
704 observer.NavigationItemCommitted(load_details); 704 observer.NavigationItemCommitted(load_details);
705 } 705 }
706 706
707 WebState* WebStateImpl::GetWebState() { 707 WebState* WebStateImpl::GetWebState() {
708 return this; 708 return this;
709 } 709 }
710 710
711 } // namespace web 711 } // namespace web
OLDNEW
« no previous file with comments | « content/renderer/service_worker/service_worker_context_client.cc ('k') | ios/web/webui/mojo_facade_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698