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

Side by Side Diff: components/font_service/public/cpp/font_service_thread.h

Issue 2483013002: Mojo C++ bindings: Remove more use_new_wrapper_types=false. (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 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 #ifndef COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_SERVICE_THREAD_H_ 5 #ifndef COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_SERVICE_THREAD_H_
6 #define COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_SERVICE_THREAD_H_ 6 #define COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_SERVICE_THREAD_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // Called on the FontServiceThread in response to receiving a message from 64 // Called on the FontServiceThread in response to receiving a message from
65 // our MatchFamily mojo IPC. This writes the data returned by mojo, and then 65 // our MatchFamily mojo IPC. This writes the data returned by mojo, and then
66 // signals |done_event| to wake up the other thread. 66 // signals |done_event| to wake up the other thread.
67 void OnMatchFamilyNameComplete( 67 void OnMatchFamilyNameComplete(
68 base::WaitableEvent* done_event, 68 base::WaitableEvent* done_event,
69 bool* out_valid, 69 bool* out_valid,
70 SkFontConfigInterface::FontIdentity* out_font_identity, 70 SkFontConfigInterface::FontIdentity* out_font_identity,
71 SkString* out_family_name, 71 SkString* out_family_name,
72 SkFontStyle* out_style, 72 SkFontStyle* out_style,
73 mojom::FontIdentityPtr font_identity, 73 mojom::FontIdentityPtr font_identity,
74 mojo::String family_name, 74 const std::string& family_name,
75 mojom::TypefaceStylePtr style); 75 mojom::TypefaceStylePtr style);
76 76
77 // Implementation of OpenStream; same threading restrictions as MatchFamily. 77 // Implementation of OpenStream; same threading restrictions as MatchFamily.
78 void OpenStreamImpl(base::WaitableEvent* done_event, 78 void OpenStreamImpl(base::WaitableEvent* done_event,
79 base::File* output_file, 79 base::File* output_file,
80 const uint32_t id_number); 80 const uint32_t id_number);
81 void OnOpenStreamComplete(base::WaitableEvent* done_event, 81 void OnOpenStreamComplete(base::WaitableEvent* done_event,
82 base::File* output_file, 82 base::File* output_file,
83 mojo::ScopedHandle handle); 83 mojo::ScopedHandle handle);
84 84
(...skipping 23 matching lines...) Expand all
108 108
109 base::WeakPtrFactory<FontServiceThread> weak_factory_; 109 base::WeakPtrFactory<FontServiceThread> weak_factory_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(FontServiceThread); 111 DISALLOW_COPY_AND_ASSIGN(FontServiceThread);
112 }; 112 };
113 113
114 } // namespace internal 114 } // namespace internal
115 } // namespace font_service 115 } // namespace font_service
116 116
117 #endif // COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_SERVICE_THREAD_H_ 117 #endif // COMPONENTS_FONT_SERVICE_PUBLIC_CPP_FONT_SERVICE_THREAD_H_
OLDNEW
« no previous file with comments | « components/font_service/font_service_app.cc ('k') | components/font_service/public/cpp/font_service_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698