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

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

Issue 2539383002: Replace base::File wrapping with typemapping. (Closed)
Patch Set: Created 4 years 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 mojom::FontIdentityPtr font_identity, 73 mojom::FontIdentityPtr font_identity,
74 const std::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 base::File file);
84 84
85 // Connection to |font_service_| has gone away. Called on the background 85 // Connection to |font_service_| has gone away. Called on the background
86 // thread. 86 // thread.
87 void OnFontServiceConnectionError(); 87 void OnFontServiceConnectionError();
88 88
89 // base::Thread 89 // base::Thread
90 void Init() override; 90 void Init() override;
91 void CleanUp() override; 91 void CleanUp() override;
92 92
93 // This member is used to safely pass data from one thread to another. It is 93 // This member is used to safely pass data from one thread to another. It is
(...skipping 14 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

Powered by Google App Engine
This is Rietveld 408576698