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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | ios/web/webui/mojo_facade.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 const ImageDownloadCallback& callback) { 525 const ImageDownloadCallback& callback) {
526 // |is_favicon| specifies whether the download of the image occurs with 526 // |is_favicon| specifies whether the download of the image occurs with
527 // cookies or not. Currently, only downloads without cookies are supported. 527 // cookies or not. Currently, only downloads without cookies are supported.
528 // |bypass_cache| is ignored since the downloads never go through a cache. 528 // |bypass_cache| is ignored since the downloads never go through a cache.
529 DCHECK(is_favicon); 529 DCHECK(is_favicon);
530 return [[web_controller_ delegate] downloadImageAtUrl:url 530 return [[web_controller_ delegate] downloadImageAtUrl:url
531 maxBitmapSize:max_bitmap_size 531 maxBitmapSize:max_bitmap_size
532 callback:callback]; 532 callback:callback];
533 } 533 }
534 534
535 shell::InterfaceRegistry* WebStateImpl::GetMojoInterfaceRegistry() { 535 service_manager::InterfaceRegistry* WebStateImpl::GetMojoInterfaceRegistry() {
536 if (!mojo_interface_registry_) { 536 if (!mojo_interface_registry_) {
537 mojo_interface_registry_.reset(new shell::InterfaceRegistry); 537 mojo_interface_registry_.reset(new service_manager::InterfaceRegistry);
538 } 538 }
539 return mojo_interface_registry_.get(); 539 return mojo_interface_registry_.get();
540 } 540 }
541 541
542 base::WeakPtr<WebState> WebStateImpl::AsWeakPtr() { 542 base::WeakPtr<WebState> WebStateImpl::AsWeakPtr() {
543 return weak_factory_.GetWeakPtr(); 543 return weak_factory_.GetWeakPtr();
544 } 544 }
545 545
546 #pragma mark - WebState implementation 546 #pragma mark - WebState implementation
547 547
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | ios/web/webui/mojo_facade.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698