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

Side by Side Diff: content/common/font_config_ipc_linux.h

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_ 5 #ifndef CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_
6 #define CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_ 6 #define CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "skia/ext/SkFontHost_fontconfig_impl.h" 9 #include "skia/ext/SkFontHost_fontconfig_impl.h"
10 10
11 #include <string> 11 #include <string>
12 12
13 // FontConfig implementation for Skia that proxies out of process to get out 13 // FontConfig implementation for Skia that proxies out of process to get out
14 // of the sandbox. See http://code.google.com/p/chromium/wiki/LinuxSandboxIPC 14 // of the sandbox. See http://code.google.com/p/chromium/wiki/LinuxSandboxIPC
15 class FontConfigIPC : public FontConfigInterface { 15 class FontConfigIPC : public FontConfigInterface {
16 public: 16 public:
17 explicit FontConfigIPC(int fd); 17 explicit FontConfigIPC(int fd);
18 ~FontConfigIPC(); 18 virtual ~FontConfigIPC();
19 19
20 // FontConfigInterface implementation. 20 // FontConfigInterface implementation.
21 virtual bool Match(std::string* result_family, 21 virtual bool Match(std::string* result_family,
22 unsigned* result_filefaceid, 22 unsigned* result_filefaceid,
23 bool filefaceid_valid, 23 bool filefaceid_valid,
24 unsigned filefaceid, 24 unsigned filefaceid,
25 const std::string& family, 25 const std::string& family,
26 const void* characters, 26 const void* characters,
27 size_t characters_bytes, 27 size_t characters_bytes,
28 bool* is_bold, bool* is_italic); 28 bool* is_bold, bool* is_italic);
29 virtual int Open(unsigned filefaceid); 29 virtual int Open(unsigned filefaceid);
30 30
31 enum Method { 31 enum Method {
32 METHOD_MATCH = 0, 32 METHOD_MATCH = 0,
33 METHOD_OPEN = 1, 33 METHOD_OPEN = 1,
34 }; 34 };
35 35
36 private: 36 private:
37 const int fd_; 37 const int fd_;
38 }; 38 };
39 39
40 #endif // CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_ 40 #endif // CONTENT_COMMON_FONT_CONFIG_IPC_LINUX_H_
OLDNEW
« no previous file with comments | « content/common/file_system/file_system_dispatcher.h ('k') | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698