Skip to content

Commit

Permalink
Tighten up DEPS some more. NaCl/service process code are including in…
Browse files Browse the repository at this point in the history
…ternal content files. Fix the instances other sandbox stuff, which I'll do in a followup.

BUG=98716
Review URL: https://chromiumcodereview.appspot.com/10512010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140346 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
jam@chromium.org committed Jun 4, 2012
1 parent 3167bd4 commit b3aabd3
Show file tree
Hide file tree
Showing 37 changed files with 58 additions and 122 deletions.
1 change: 1 addition & 0 deletions base/base.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
'file_util_unittest.cc',
'file_version_info_unittest.cc',
'gmock_unittest.cc',
'hi_res_timer_manager_unittest.cc',
'id_map_unittest.cc',
'i18n/break_iterator_unittest.cc',
'i18n/char_iterator_unittest.cc',
Expand Down
5 changes: 5 additions & 0 deletions base/base.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@
'global_descriptors_posix.h',
'gtest_prod_util.h',
'hash_tables.h',
'hi_res_timer_manager_posix.cc',
'hi_res_timer_manager_win.cc',
'hi_res_timer_manager.h',
'id_map.h',
'json/json_file_value_serializer.cc',
'json/json_file_value_serializer.h',
Expand Down Expand Up @@ -253,6 +256,8 @@
'platform_file_posix.cc',
'platform_file_win.cc',
'port.h',
'posix/unix_domain_socket.cc',
'posix/unix_domain_socket.h',
'process.h',
'process_linux.cc',
'process_posix.cc',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_COMMON_HI_RES_TIMER_MANAGER_H_
#define CONTENT_COMMON_HI_RES_TIMER_MANAGER_H_
#ifndef BASE_HI_RES_TIMER_MANAGER_H_
#define BASE_HI_RES_TIMER_MANAGER_H_
#pragma once

#include "base/base_export.h"
#include "base/system_monitor/system_monitor.h"
#include "content/common/content_export.h"

// Ensures that the Windows high resolution timer is only used
// when not running on battery power.
class CONTENT_EXPORT HighResolutionTimerManager
class BASE_EXPORT HighResolutionTimerManager
: public base::SystemMonitor::PowerObserver {
public:
HighResolutionTimerManager();
Expand All @@ -32,4 +32,4 @@ class CONTENT_EXPORT HighResolutionTimerManager
DISALLOW_COPY_AND_ASSIGN(HighResolutionTimerManager);
};

#endif // CONTENT_COMMON_HI_RES_TIMER_MANAGER_H_
#endif // BASE_HI_RES_TIMER_MANAGER_H_
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/common/hi_res_timer_manager.h"
#include "base/hi_res_timer_manager.h"

// On POSIX we don't need to do anything special with the system timer.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/common/hi_res_timer_manager.h"
#include "base/hi_res_timer_manager.h"

#include "base/memory/scoped_ptr.h"
#include "base/system_monitor/system_monitor.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/common/hi_res_timer_manager.h"
#include "base/hi_res_timer_manager.h"

#include "base/time.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/common/unix_domain_socket_posix.h"
#include "base/posix/unix_domain_socket.h"

#include <errno.h>
#include <unistd.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_
#define CONTENT_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_
#ifndef BASE_POSIX_UNIX_DOMAIN_SOCKET_H_
#define BASE_POSIX_UNIX_DOMAIN_SOCKET_H_
#pragma once

#include <stdint.h>
#include <sys/types.h>
#include <vector>

#include "content/common/content_export.h"
#include "base/base_export.h"

class Pickle;

class CONTENT_EXPORT UnixDomainSocket {
class BASE_EXPORT UnixDomainSocket {
public:
// Use sendmsg to write the given msg and include a vector of file
// descriptors. Returns true if successful.
Expand Down Expand Up @@ -53,4 +53,4 @@ class CONTENT_EXPORT UnixDomainSocket {
const Pickle& request);
};

#endif // CONTENT_COMMON_UNIX_DOMAIN_SOCKET_POSIX_H_
#endif // BASE_POSIX_UNIX_DOMAIN_SOCKET_POSIX_H_
6 changes: 5 additions & 1 deletion build/filename_rules.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
],
}],
['OS=="win"', {
'sources/': [ ['exclude', '_posix(_unittest)?\\.(h|cc)$'] ],
'sources/': [
['exclude', '_posix(_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)posix/'],
],

}],
['chromeos!=1', {
'sources/': [ ['exclude', '_chromeos\\.(h|cc)$'] ]
Expand Down
3 changes: 2 additions & 1 deletion chrome/DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ include_rules = [
"+chrome/test",
# TODO(jam): remove me once chrome only consumes content/common through its
# public headers.
"+content/common",
"+content/common/sandbox_mac.h",
"+content/common/sandbox_policy.h",
"+content/public/common",
"+content/public/test",
"+content/test/gpu",
Expand Down
2 changes: 1 addition & 1 deletion chrome/app/breakpad_linuxish.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "chrome/common/chrome_version_info_posix.h"
#include "chrome/common/env_vars.h"
#include "chrome/common/logging_chrome.h"
#include "content/common/chrome_descriptors.h"
#include "content/public/common/content_descriptors.h"

#if defined(OS_ANDROID)
#include <android/log.h>
Expand Down
4 changes: 2 additions & 2 deletions chrome/app/chrome_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "chrome/plugin/chrome_content_plugin_client.h"
#include "chrome/renderer/chrome_content_renderer_client.h"
#include "chrome/utility/chrome_content_utility_client.h"
#include "content/common/content_counters.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_paths.h"
#include "content/public/common/content_switches.h"
Expand Down Expand Up @@ -574,8 +573,9 @@ void ChromeMainDelegate::PreSandboxStartup() {
chrome::ProcessNeedsProfileDir(process_type)));
}

base::StatsCounterTimer stats_counter_timer("Chrome.Init");
startup_timer_.reset(new base::StatsScope<base::StatsCounterTimer>
(content::Counters::chrome_main()));
(stats_counter_timer));

// Enable the heap profiler as early as possible!
EnableHeapProfiler(command_line);
Expand Down
2 changes: 1 addition & 1 deletion chrome/app/nacl_fork_delegate_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#include "base/logging.h"
#include "base/file_path.h"
#include "base/path_service.h"
#include "base/posix/unix_domain_socket.h"
#include "base/process_util.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
#include "content/common/unix_domain_socket_posix.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/nacl_helper_linux.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/nacl/nacl_exe_win_64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/hi_res_timer_manager.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/process_util.h"
Expand All @@ -16,7 +17,6 @@
#include "chrome/nacl/nacl_broker_listener.h"
#include "chrome/nacl/nacl_listener.h"
#include "chrome/nacl/nacl_main_platform_delegate.h"
#include "content/common/hi_res_timer_manager.h"
#include "content/public/app/startup_helper_win.h"
#include "content/public/common/main_function_params.h"
#include "content/public/common/sandbox_init.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/nacl/nacl_helper_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
#include "base/eintr_wrapper.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/posix/unix_domain_socket.h"
#include "base/rand_util.h"
#include "chrome/nacl/nacl_listener.h"
#include "content/common/unix_domain_socket_posix.h"
#include "crypto/nss_util.h"
#include "ipc/ipc_switches.h"
#include "native_client/src/trusted/service_runtime/sel_memory.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/nacl/nacl_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
#include "build/build_config.h"

#include "base/command_line.h"
#include "base/hi_res_timer_manager.h"
#include "base/message_loop.h"
#include "base/system_monitor/system_monitor.h"
#include "chrome/common/chrome_result_codes.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/nacl/nacl_listener.h"
#include "chrome/nacl/nacl_main_platform_delegate.h"
#include "content/common/hi_res_timer_manager.h"
#include "content/public/common/main_function_params.h"

// main() routine for the NaCl loader process.
Expand Down
2 changes: 1 addition & 1 deletion content/app/content_main_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#include <signal.h>

#include "base/global_descriptors_posix.h"
#include "content/common/chrome_descriptors.h"
#include "content/public/common/content_descriptors.h"

#if !defined(OS_MACOSX)
#include "content/public/common/zygote_fork_delegate_linux.h"
Expand Down
2 changes: 1 addition & 1 deletion content/browser/browser_main_loop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/debug/trace_event.h"
#include "base/hi_res_timer_manager.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/metrics/field_trial.h"
Expand All @@ -25,7 +26,6 @@
#include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
#include "content/browser/speech/speech_recognition_manager_impl.h"
#include "content/browser/trace_controller_impl.h"
#include "content/common/hi_res_timer_manager.h"
#include "content/public/browser/browser_main_parts.h"
#include "content/public/browser/browser_shutdown.h"
#include "content/public/browser/content_browser_client.h"
Expand Down
2 changes: 1 addition & 1 deletion content/browser/child_process_launcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include "base/process_util.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread.h"
#include "content/common/chrome_descriptors.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_descriptors.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/result_codes.h"

Expand Down
2 changes: 1 addition & 1 deletion content/browser/renderer_host/render_sandbox_host_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/pickle.h"
#include "base/posix/unix_domain_socket.h"
#include "base/process_util.h"
#include "base/shared_memory.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "content/common/font_config_ipc_linux.h"
#include "content/common/sandbox_methods_linux.h"
#include "content/common/unix_domain_socket_posix.h"
#include "content/common/webkitplatformsupport_impl.h"
#include "skia/ext/SkFontHost_fontconfig_direct.h"
#include "third_party/npapi/bindings/npapi_extensions.h"
Expand Down
2 changes: 1 addition & 1 deletion content/browser/zygote_host_impl_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
#include "base/metrics/histogram.h"
#include "base/path_service.h"
#include "base/pickle.h"
#include "base/posix/unix_domain_socket.h"
#include "base/process_util.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "content/browser/renderer_host/render_sandbox_host_linux.h"
#include "content/common/unix_domain_socket_posix.h"
#include "content/common/zygote_commands_linux.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_switches.h"
Expand Down
2 changes: 1 addition & 1 deletion content/common/child_process_sandbox_support_impl_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "base/eintr_wrapper.h"
#include "base/memory/scoped_ptr.h"
#include "base/pickle.h"
#include "base/posix/unix_domain_socket.h"
#include "content/common/sandbox_methods_linux.h"
#include "content/common/unix_domain_socket_posix.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/linux/WebFontFamily.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebFontRenderStyle.h"

Expand Down
2 changes: 1 addition & 1 deletion content/common/child_process_sandbox_support_impl_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#pragma once

#include "base/global_descriptors_posix.h"
#include "content/common/chrome_descriptors.h"
#include "content/public/common/child_process_sandbox_support_linux.h"
#include "content/public/common/content_descriptors.h"

namespace WebKit {
struct WebFontFamily;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// found in the LICENSE file.

#include "base/pickle.h"
#include "base/posix/unix_domain_socket.h"
#include "content/common/child_process_sandbox_support_impl_linux.h"
#include "content/common/sandbox_methods_linux.h"
#include "content/common/unix_domain_socket_posix.h"

namespace content {

Expand Down
35 changes: 0 additions & 35 deletions content/common/content_counters.cc

This file was deleted.

31 changes: 0 additions & 31 deletions content/common/content_counters.h

This file was deleted.

2 changes: 1 addition & 1 deletion content/common/font_config_ipc_linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <sys/uio.h>

#include "base/pickle.h"
#include "content/common/unix_domain_socket_posix.h"
#include "base/posix/unix_domain_socket.h"

FontConfigIPC::FontConfigIPC(int fd)
: fd_(fd) {
Expand Down
Loading

0 comments on commit b3aabd3

Please sign in to comment.