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

Side by Side Diff: content/browser/renderer_host/sandbox_ipc_linux.cc

Issue 1951013003: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Florin's smart pointer fix Created 4 years, 6 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 | « content/browser/renderer_host/sandbox_ipc_linux.h ('k') | content/child/font_warmup_win.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer_host/sandbox_ipc_linux.h" 5 #include "content/browser/renderer_host/sandbox_ipc_linux.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string.h> 10 #include <string.h>
11 #include <sys/poll.h> 11 #include <sys/poll.h>
12 #include <sys/socket.h> 12 #include <sys/socket.h>
13 #include <sys/stat.h> 13 #include <sys/stat.h>
14 14
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/files/scoped_file.h" 16 #include "base/files/scoped_file.h"
17 #include "base/linux_util.h" 17 #include "base/linux_util.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/shared_memory.h" 19 #include "base/memory/shared_memory.h"
20 #include "base/posix/eintr_wrapper.h" 20 #include "base/posix/eintr_wrapper.h"
21 #include "base/posix/unix_domain_socket_linux.h" 21 #include "base/posix/unix_domain_socket_linux.h"
22 #include "base/process/launch.h" 22 #include "base/process/launch.h"
23 #include "base/strings/string_number_conversions.h" 23 #include "base/strings/string_number_conversions.h"
24 #include "content/browser/renderer_host/font_utils_linux.h" 24 #include "content/browser/renderer_host/font_utils_linux.h"
25 #include "content/common/font_config_ipc_linux.h" 25 #include "content/common/font_config_ipc_linux.h"
26 #include "content/common/sandbox_linux/sandbox_linux.h" 26 #include "content/common/sandbox_linux/sandbox_linux.h"
27 #include "content/common/set_process_title.h" 27 #include "content/common/set_process_title.h"
28 #include "content/public/common/content_switches.h" 28 #include "content/public/common/content_switches.h"
29 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" 29 #include "ppapi/c/trusted/ppb_browser_font_trusted.h"
30 #include "skia/ext/skia_utils_base.h"
30 #include "third_party/skia/include/ports/SkFontConfigInterface.h" 31 #include "third_party/skia/include/ports/SkFontConfigInterface.h"
31 #include "ui/gfx/font.h" 32 #include "ui/gfx/font.h"
32 #include "ui/gfx/font_fallback_linux.h" 33 #include "ui/gfx/font_fallback_linux.h"
33 #include "ui/gfx/font_render_params.h" 34 #include "ui/gfx/font_render_params.h"
34 35
35 namespace content { 36 namespace content {
36 37
37 namespace { 38 namespace {
38 39
39 // Converts gfx::FontRenderParams::Hinting to WebFontRenderStyle::hintStyle. 40 // Converts gfx::FontRenderParams::Hinting to WebFontRenderStyle::hintStyle.
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 } 416 }
416 417
417 SandboxIPCHandler::~SandboxIPCHandler() { 418 SandboxIPCHandler::~SandboxIPCHandler() {
418 if (IGNORE_EINTR(close(lifeline_fd_)) < 0) 419 if (IGNORE_EINTR(close(lifeline_fd_)) < 0)
419 PLOG(ERROR) << "close"; 420 PLOG(ERROR) << "close";
420 if (IGNORE_EINTR(close(browser_socket_)) < 0) 421 if (IGNORE_EINTR(close(browser_socket_)) < 0)
421 PLOG(ERROR) << "close"; 422 PLOG(ERROR) << "close";
422 } 423 }
423 424
424 } // namespace content 425 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/sandbox_ipc_linux.h ('k') | content/child/font_warmup_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698