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

Side by Side Diff: content/browser/media/android/provision_fetcher_impl.cc

Issue 1977173002: Rename media::interfaces to media::mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android + chromeos files Created 4 years, 7 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
OLDNEW
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 #include "content/browser/media/android/provision_fetcher_impl.h" 5 #include "content/browser/media/android/provision_fetcher_impl.h"
6 6
7 #include "content/public/browser/android/provision_fetcher_factory.h" 7 #include "content/public/browser/android/provision_fetcher_factory.h"
8 #include "content/public/browser/browser_context.h" 8 #include "content/public/browser/browser_context.h"
9 #include "content/public/browser/render_frame_host.h" 9 #include "content/public/browser/render_frame_host.h"
10 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
11 #include "content/public/browser/storage_partition.h" 11 #include "content/public/browser/storage_partition.h"
12 #include "net/url_request/url_request_context_getter.h" 12 #include "net/url_request/url_request_context_getter.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // static 16 // static
17 void ProvisionFetcherImpl::Create( 17 void ProvisionFetcherImpl::Create(
18 RenderFrameHost* render_frame_host, 18 RenderFrameHost* render_frame_host,
19 mojo::InterfaceRequest<media::interfaces::ProvisionFetcher> request) { 19 mojo::InterfaceRequest<media::mojom::ProvisionFetcher> request) {
20 net::URLRequestContextGetter* context_getter = 20 net::URLRequestContextGetter* context_getter =
21 BrowserContext::GetDefaultStoragePartition( 21 BrowserContext::GetDefaultStoragePartition(
22 render_frame_host->GetProcess()->GetBrowserContext())-> 22 render_frame_host->GetProcess()->GetBrowserContext())->
23 GetURLRequestContext(); 23 GetURLRequestContext();
24 DCHECK(context_getter); 24 DCHECK(context_getter);
25 25
26 // The created object is strongly bound to (and owned by) the pipe. 26 // The created object is strongly bound to (and owned by) the pipe.
27 new ProvisionFetcherImpl(CreateProvisionFetcher(context_getter), 27 new ProvisionFetcherImpl(CreateProvisionFetcher(context_getter),
28 std::move(request)); 28 std::move(request));
29 } 29 }
(...skipping 20 matching lines...) Expand all
50 } 50 }
51 51
52 void ProvisionFetcherImpl::OnResponse(const RetrieveCallback& callback, 52 void ProvisionFetcherImpl::OnResponse(const RetrieveCallback& callback,
53 bool success, 53 bool success,
54 const std::string& response) { 54 const std::string& response) {
55 DVLOG(1) << __FUNCTION__ << ": " << success; 55 DVLOG(1) << __FUNCTION__ << ": " << success;
56 callback.Run(success, response); 56 callback.Run(success, response);
57 } 57 }
58 58
59 } // namespace content 59 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/android/provision_fetcher_impl.h ('k') | content/renderer/media/media_interface_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698