OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #import "ios/web/webui/crw_web_ui_manager.h" | 5 #import "ios/web/webui/crw_web_ui_manager.h" |
6 | 6 |
7 #include "base/mac/bind_objc_block.h" | 7 #include "base/mac/bind_objc_block.h" |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #import "base/strings/sys_string_conversions.h" | 10 #import "base/strings/sys_string_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #import "ios/web/net/request_group_util.h" | 12 #import "ios/web/net/request_group_util.h" |
13 #include "ios/web/public/browser_state.h" | 13 #include "ios/web/public/browser_state.h" |
| 14 #include "ios/web/public/web_client.h" |
14 #import "ios/web/public/web_state/web_state_observer_bridge.h" | 15 #import "ios/web/public/web_state/web_state_observer_bridge.h" |
15 #include "ios/web/public/web_client.h" | |
16 #include "ios/web/web_state/web_state_impl.h" | 16 #include "ios/web/web_state/web_state_impl.h" |
17 #import "ios/web/webui/crw_web_ui_page_builder.h" | 17 #import "ios/web/webui/crw_web_ui_page_builder.h" |
18 #include "ios/web/webui/url_fetcher_block_adapter.h" | 18 #include "ios/web/webui/url_fetcher_block_adapter.h" |
19 #import "net/base/mac/url_conversions.h" | 19 #import "net/base/mac/url_conversions.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 // Prefix for history.requestFavicon JavaScript message. | 22 // Prefix for history.requestFavicon JavaScript message. |
23 const char kScriptCommandPrefix[] = "webui"; | 23 const char kScriptCommandPrefix[] = "webui"; |
24 } | 24 } |
25 | 25 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 - (scoped_ptr<web::URLFetcherBlockAdapter>) | 205 - (scoped_ptr<web::URLFetcherBlockAdapter>) |
206 fetcherForURL:(const GURL&)URL | 206 fetcherForURL:(const GURL&)URL |
207 completionHandler:(web::URLFetcherBlockAdapterCompletion)handler { | 207 completionHandler:(web::URLFetcherBlockAdapterCompletion)handler { |
208 return scoped_ptr<web::URLFetcherBlockAdapter>( | 208 return scoped_ptr<web::URLFetcherBlockAdapter>( |
209 new web::URLFetcherBlockAdapter( | 209 new web::URLFetcherBlockAdapter( |
210 URL, _webState->GetBrowserState()->GetRequestContext(), handler)); | 210 URL, _webState->GetBrowserState()->GetRequestContext(), handler)); |
211 } | 211 } |
212 | 212 |
213 @end | 213 @end |
OLD | NEW |