summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-25 04:46:55 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-25 04:46:55 +0000
commitb39ef1cbd64f15a141e553e0fd55e6b71606140b (patch)
treea0a12b35c8740f2afe84d0e081723a5170bc445d /content
parent670b7936c8f5469c8cf227b72386d654a0eebf25 (diff)
downloadchromium_src-b39ef1cbd64f15a141e553e0fd55e6b71606140b.zip
chromium_src-b39ef1cbd64f15a141e553e0fd55e6b71606140b.tar.gz
chromium_src-b39ef1cbd64f15a141e553e0fd55e6b71606140b.tar.bz2
Move resource_codes to content/public/common.
BUG=98716 Review URL: http://codereview.chromium.org/8382021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107061 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/browser_child_process_host.cc2
-rw-r--r--content/browser/browser_main.cc2
-rw-r--r--content/browser/browser_message_filter.cc2
-rw-r--r--content/browser/child_process_launcher.cc2
-rw-r--r--content/browser/child_process_security_policy_browsertest.cc2
-rw-r--r--content/browser/gpu/gpu_process_host.cc2
-rw-r--r--content/browser/in_process_webkit/indexed_db_dispatcher_host.cc2
-rw-r--r--content/browser/renderer_host/browser_render_process_host.cc2
-rw-r--r--content/browser/renderer_host/database_message_filter.cc2
-rw-r--r--content/browser/renderer_host/render_view_host.cc2
-rw-r--r--content/browser/renderer_host/render_widget_host.cc2
-rw-r--r--content/browser/worker_host/worker_process_host.cc2
-rw-r--r--content/browser/zygote_host_linux.cc2
-rw-r--r--content/browser/zygote_main_linux.cc2
-rw-r--r--content/common/handle_enumerator_win.cc2
-rw-r--r--content/common/process_watcher_win.cc3
-rw-r--r--content/content_common.gypi1
-rw-r--r--content/gpu/gpu_watchdog_thread.cc2
-rw-r--r--content/public/common/result_codes.h (renamed from content/common/result_codes.h)8
19 files changed, 22 insertions, 22 deletions
diff --git a/content/browser/browser_child_process_host.cc b/content/browser/browser_child_process_host.cc
index af10c45d..53276e6 100644
--- a/content/browser/browser_child_process_host.cc
+++ b/content/browser/browser_child_process_host.cc
@@ -19,10 +19,10 @@
#include "content/public/browser/notification_service.h"
#include "content/common/plugin_messages.h"
#include "content/common/process_watcher.h"
-#include "content/common/result_codes.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/notification_types.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#if defined(OS_WIN)
#include "base/synchronization/waitable_event.h"
diff --git a/content/browser/browser_main.cc b/content/browser/browser_main.cc
index c9432ae..c0ef41e 100644
--- a/content/browser/browser_main.cc
+++ b/content/browser/browser_main.cc
@@ -17,10 +17,10 @@
#include "content/browser/notification_service_impl.h"
#include "content/common/hi_res_timer_manager.h"
#include "content/common/main_function_params.h"
-#include "content/common/result_codes.h"
#include "content/common/sandbox_policy.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#include "crypto/nss_util.h"
#include "net/base/network_change_notifier.h"
#include "net/base/ssl_config_service.h"
diff --git a/content/browser/browser_message_filter.cc b/content/browser/browser_message_filter.cc
index 7d1c240..e8fe86c 100644
--- a/content/browser/browser_message_filter.cc
+++ b/content/browser/browser_message_filter.cc
@@ -8,7 +8,7 @@
#include "base/process.h"
#include "base/process_util.h"
#include "content/browser/user_metrics.h"
-#include "content/common/result_codes.h"
+#include "content/public/common/result_codes.h"
#include "ipc/ipc_sync_message.h"
BrowserMessageFilter::BrowserMessageFilter()
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index 9020df7..ea65150 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -15,9 +15,9 @@
#include "content/browser/browser_thread.h"
#include "content/common/chrome_descriptors.h"
#include "content/common/process_watcher.h"
-#include "content/common/result_codes.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#if defined(OS_WIN)
#include "base/file_path.h"
diff --git a/content/browser/child_process_security_policy_browsertest.cc b/content/browser/child_process_security_policy_browsertest.cc
index 00af2e1..a70d1c6 100644
--- a/content/browser/child_process_security_policy_browsertest.cc
+++ b/content/browser/child_process_security_policy_browsertest.cc
@@ -13,7 +13,7 @@
#include "content/browser/child_process_security_policy.h"
#include "content/browser/renderer_host/render_process_host.h"
#include "content/browser/tab_contents/tab_contents.h"
-#include "content/common/result_codes.h"
+#include "content/public/common/result_codes.h"
#include "testing/gtest/include/gtest/gtest.h"
class ChildProcessSecurityPolicyInProcessBrowserTest
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index b3e05a9..0d23a03 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -19,10 +19,10 @@
#include "content/browser/renderer_host/render_widget_host.h"
#include "content/browser/renderer_host/render_widget_host_view.h"
#include "content/common/gpu/gpu_messages.h"
-#include "content/common/result_codes.h"
#include "content/gpu/gpu_child_thread.h"
#include "content/gpu/gpu_process.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_switches.h"
#include "ui/gfx/gl/gl_context.h"
diff --git a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
index 85997b5..ce9211c 100644
--- a/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
+++ b/content/browser/in_process_webkit/indexed_db_dispatcher_host.cc
@@ -14,8 +14,8 @@
#include "content/browser/renderer_host/render_message_filter.h"
#include "content/browser/user_metrics.h"
#include "content/common/indexed_db_messages.h"
-#include "content/common/result_codes.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#include "googleurl/src/gurl.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMStringList.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCursor.h"
diff --git a/content/browser/renderer_host/browser_render_process_host.cc b/content/browser/renderer_host/browser_render_process_host.cc
index abcb84d..f9c79fc 100644
--- a/content/browser/renderer_host/browser_render_process_host.cc
+++ b/content/browser/renderer_host/browser_render_process_host.cc
@@ -75,10 +75,10 @@
#include "content/public/browser/notification_service.h"
#include "content/common/process_watcher.h"
#include "content/common/resource_messages.h"
-#include "content/common/result_codes.h"
#include "content/common/view_messages.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#include "content/renderer/render_process_impl.h"
#include "content/renderer/render_thread_impl.h"
#include "ipc/ipc_logging.h"
diff --git a/content/browser/renderer_host/database_message_filter.cc b/content/browser/renderer_host/database_message_filter.cc
index 09555e0..53c46dd 100644
--- a/content/browser/renderer_host/database_message_filter.cc
+++ b/content/browser/renderer_host/database_message_filter.cc
@@ -13,7 +13,7 @@
#include "base/utf_string_conversions.h"
#include "content/browser/user_metrics.h"
#include "content/common/database_messages.h"
-#include "content/common/result_codes.h"
+#include "content/public/common/result_codes.h"
#include "googleurl/src/gurl.h"
#include "third_party/sqlite/sqlite3.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc
index c3b45f0..e150822 100644
--- a/content/browser/renderer_host/render_view_host.cc
+++ b/content/browser/renderer_host/render_view_host.cc
@@ -34,7 +34,6 @@
#include "content/common/desktop_notification_messages.h"
#include "content/common/drag_messages.h"
#include "content/public/browser/notification_service.h"
-#include "content/common/result_codes.h"
#include "content/common/speech_input_messages.h"
#include "content/common/swapped_out_messages.h"
#include "content/common/view_messages.h"
@@ -43,6 +42,7 @@
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_types.h"
#include "content/public/common/bindings_policy.h"
+#include "content/public/common/result_codes.h"
#include "content/public/common/url_constants.h"
#include "net/base/net_util.h"
#include "net/url_request/url_request_context_getter.h"
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc
index c826f07..d2ab843 100644
--- a/content/browser/renderer_host/render_widget_host.cc
+++ b/content/browser/renderer_host/render_widget_host.cc
@@ -22,11 +22,11 @@
#include "content/browser/user_metrics.h"
#include "content/common/gpu/gpu_messages.h"
#include "content/public/browser/notification_service.h"
-#include "content/common/result_codes.h"
#include "content/common/view_messages.h"
#include "content/public/browser/native_web_keyboard_event.h"
#include "content/public/browser/notification_types.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h"
#include "ui/base/keycodes/keyboard_codes.h"
#include "webkit/glue/webcursor.h"
diff --git a/content/browser/worker_host/worker_process_host.cc b/content/browser/worker_host/worker_process_host.cc
index b3893d1..87fc44c 100644
--- a/content/browser/worker_host/worker_process_host.cc
+++ b/content/browser/worker_host/worker_process_host.cc
@@ -33,11 +33,11 @@
#include "content/browser/worker_host/worker_message_filter.h"
#include "content/browser/worker_host/worker_service.h"
#include "content/common/debug_flags.h"
-#include "content/common/result_codes.h"
#include "content/common/view_messages.h"
#include "content/common/worker_messages.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#include "net/base/mime_util.h"
#include "ipc/ipc_switches.h"
#include "net/base/registry_controlled_domain.h"
diff --git a/content/browser/zygote_host_linux.cc b/content/browser/zygote_host_linux.cc
index 4963dd7..a0ca2fc 100644
--- a/content/browser/zygote_host_linux.cc
+++ b/content/browser/zygote_host_linux.cc
@@ -27,10 +27,10 @@
#include "base/utf_string_conversions.h"
#include "content/browser/renderer_host/render_sandbox_host_linux.h"
#include "content/common/process_watcher.h"
-#include "content/common/result_codes.h"
#include "content/common/unix_domain_socket_posix.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#include "sandbox/linux/suid/suid_unsafe_environment_variables.h"
#if defined(USE_TCMALLOC)
diff --git a/content/browser/zygote_main_linux.cc b/content/browser/zygote_main_linux.cc
index 10c4983..973eccb 100644
--- a/content/browser/zygote_main_linux.cc
+++ b/content/browser/zygote_main_linux.cc
@@ -33,13 +33,13 @@
#include "content/common/main_function_params.h"
#include "content/common/pepper_plugin_registry.h"
#include "content/common/process_watcher.h"
-#include "content/common/result_codes.h"
#include "content/common/sandbox_methods_linux.h"
#include "content/common/seccomp_sandbox.h"
#include "content/common/set_process_title.h"
#include "content/common/unix_domain_socket_posix.h"
#include "content/common/zygote_fork_delegate_linux.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#include "skia/ext/SkFontHost_fontconfig_control.h"
#include "unicode/timezone.h"
#include "ipc/ipc_channel.h"
diff --git a/content/common/handle_enumerator_win.cc b/content/common/handle_enumerator_win.cc
index e3985af..2c992e6 100644
--- a/content/common/handle_enumerator_win.cc
+++ b/content/common/handle_enumerator_win.cc
@@ -13,8 +13,8 @@
#include "base/process_util.h"
#include "base/utf_string_conversions.h"
#include "base/win/windows_version.h"
-#include "content/common/result_codes.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/result_codes.h"
#include "sandbox/src/handle_table.h"
namespace {
diff --git a/content/common/process_watcher_win.cc b/content/common/process_watcher_win.cc
index e687a69..e37dd69 100644
--- a/content/common/process_watcher_win.cc
+++ b/content/common/process_watcher_win.cc
@@ -6,8 +6,9 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
+#include "base/process_util.h"
#include "base/win/object_watcher.h"
-#include "content/common/result_codes.h"
+#include "content/public/common/result_codes.h"
// Maximum amount of time (in milliseconds) to wait for the process to exit.
static const int kWaitInterval = 2000;
diff --git a/content/content_common.gypi b/content/content_common.gypi
index 6777d30..4d1eced 100644
--- a/content/content_common.gypi
+++ b/content/content_common.gypi
@@ -43,6 +43,7 @@
'public/common/pepper_plugin_info.cc',
'public/common/pepper_plugin_info.h',
'public/common/resource_dispatcher_delegate.h',
+ 'public/common/result_codes.h',
'public/common/security_style.h',
'public/common/serialized_script_value.cc',
'public/common/serialized_script_value.h',
diff --git a/content/gpu/gpu_watchdog_thread.cc b/content/gpu/gpu_watchdog_thread.cc
index 4e2f7fb..8e8285b 100644
--- a/content/gpu/gpu_watchdog_thread.cc
+++ b/content/gpu/gpu_watchdog_thread.cc
@@ -12,7 +12,7 @@
#include "base/process_util.h"
#include "base/process.h"
#include "build/build_config.h"
-#include "content/common/result_codes.h"
+#include "content/public/common/result_codes.h"
namespace {
const int64 kCheckPeriod = 2000;
diff --git a/content/common/result_codes.h b/content/public/common/result_codes.h
index edfb8b6..ccd722e 100644
--- a/content/common/result_codes.h
+++ b/content/public/common/result_codes.h
@@ -2,12 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_RESULT_CODES_H_
-#define CONTENT_COMMON_RESULT_CODES_H_
+#ifndef CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
+#define CONTENT_PUBLIC_COMMON_RESULT_CODES_H_
#pragma once
-#include "base/process_util.h"
-
// This file consolidates all the return codes for the browser and renderer
// process. The return code is the value that:
// a) is returned by main() or winmain(), or
@@ -39,4 +37,4 @@ enum ResultCode {
} // namespace content
-#endif // CONTENT_COMMON_RESULT_CODES_H_
+#endif // CONTENT_PUBLIC_COMMON_RESULT_CODES_H_