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

Side by Side Diff: chrome/browser/renderer_host/render_sandbox_host_linux.cc

Issue 131082: Add getFileSize support to chromium... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/renderer_host/render_sandbox_host_linux.h" 5 #include "chrome/browser/renderer_host/render_sandbox_host_linux.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <unistd.h> 8 #include <unistd.h>
9 #include <sys/uio.h> 9 #include <sys/uio.h>
10 #include <sys/socket.h> 10 #include <sys/socket.h>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual WebThemeEngine* themeEngine() { return NULL; } 107 virtual WebThemeEngine* themeEngine() { return NULL; }
108 108
109 virtual unsigned long long visitedLinkHash(const char*, size_t) { return 0; } 109 virtual unsigned long long visitedLinkHash(const char*, size_t) { return 0; }
110 virtual bool isLinkVisited(unsigned long long) { return false; } 110 virtual bool isLinkVisited(unsigned long long) { return false; }
111 111
112 virtual void setCookies(const WebURL&, const WebURL&, const WebString&) { } 112 virtual void setCookies(const WebURL&, const WebURL&, const WebString&) { }
113 virtual WebString cookies(const WebURL&, const WebURL&) { return WebString(); } 113 virtual WebString cookies(const WebURL&, const WebURL&) { return WebString(); }
114 114
115 virtual void prefetchHostName(const WebString&) { } 115 virtual void prefetchHostName(const WebString&) { }
116 116
117 virtual bool getFileSize(const WebString& path, long long& result) {
118 return false;
119 }
120
117 virtual WebURLLoader* createURLLoader() { return NULL; } 121 virtual WebURLLoader* createURLLoader() { return NULL; }
118 122
119 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { } 123 virtual void getPluginList(bool refresh, WebPluginListBuilder*) { }
120 124
121 virtual void decrementStatsCounter(const char*) { } 125 virtual void decrementStatsCounter(const char*) { }
122 virtual void incrementStatsCounter(const char*) { } 126 virtual void incrementStatsCounter(const char*) { }
123 127
124 virtual void traceEventBegin(const char* name, void*, const char*) { } 128 virtual void traceEventBegin(const char* name, void*, const char*) { }
125 virtual void traceEventEnd(const char* name, void*, const char*) { } 129 virtual void traceEventEnd(const char* name, void*, const char*) { }
126 130
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 SandboxIPCProcess handler(child_lifeline_fd, browser_socket); 324 SandboxIPCProcess handler(child_lifeline_fd, browser_socket);
321 handler.Run(); 325 handler.Run();
322 _exit(0); 326 _exit(0);
323 } 327 }
324 } 328 }
325 329
326 RenderSandboxHostLinux::~RenderSandboxHostLinux() { 330 RenderSandboxHostLinux::~RenderSandboxHostLinux() {
327 HANDLE_EINTR(close(renderer_socket_)); 331 HANDLE_EINTR(close(renderer_socket_));
328 HANDLE_EINTR(close(childs_lifeline_fd_)); 332 HANDLE_EINTR(close(childs_lifeline_fd_));
329 } 333 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/file_system_accessor_unittest.cc ('k') | chrome/browser/renderer_host/resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698