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

Side by Side Diff: components/font_service/public/cpp/font_loader.cc

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 years, 11 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 | « components/font_service/public/cpp/BUILD.gn ('k') | components/html_viewer/BUILD.gn » ('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 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 "components/font_service/public/cpp/font_loader.h" 5 #include "components/font_service/public/cpp/font_loader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
11 #include "components/font_service/public/cpp/font_service_thread.h" 11 #include "components/font_service/public/cpp/font_service_thread.h"
12 #include "mojo/application/public/cpp/application_impl.h" 12 #include "mojo/shell/public/cpp/application_impl.h"
13 #include "mojo/application/public/cpp/connect.h" 13 #include "mojo/shell/public/cpp/connect.h"
14 #include "mojo/application/public/interfaces/shell.mojom.h" 14 #include "mojo/shell/public/interfaces/shell.mojom.h"
15 15
16 namespace font_service { 16 namespace font_service {
17 namespace { 17 namespace {
18 void OnGotContentHandlerID(uint32_t content_handler_id) {} 18 void OnGotContentHandlerID(uint32_t content_handler_id) {}
19 } // namespace 19 } // namespace
20 20
21 FontLoader::FontLoader(mojo::Shell* shell) { 21 FontLoader::FontLoader(mojo::Shell* shell) {
22 mojo::ServiceProviderPtr font_service_provider; 22 mojo::ServiceProviderPtr font_service_provider;
23 mojo::URLRequestPtr request(mojo::URLRequest::New()); 23 mojo::URLRequestPtr request(mojo::URLRequest::New());
24 request->url = mojo::String::From("mojo:font_service"); 24 request->url = mojo::String::From("mojo:font_service");
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 88
89 void FontLoader::OnMappedFontFileDestroyed(internal::MappedFontFile* f) { 89 void FontLoader::OnMappedFontFileDestroyed(internal::MappedFontFile* f) {
90 TRACE_EVENT1("font_loader", "FontLoader::OnMappedFontFileDestroyed", 90 TRACE_EVENT1("font_loader", "FontLoader::OnMappedFontFileDestroyed",
91 "identity", f->font_id()); 91 "identity", f->font_id());
92 base::AutoLock lock(lock_); 92 base::AutoLock lock(lock_);
93 mapped_font_files_.erase(f->font_id()); 93 mapped_font_files_.erase(f->font_id());
94 } 94 }
95 95
96 } // namespace font_service 96 } // namespace font_service
OLDNEW
« no previous file with comments | « components/font_service/public/cpp/BUILD.gn ('k') | components/html_viewer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698