summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authortimsteele@google.com <timsteele@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 18:46:34 +0000
committertimsteele@google.com <timsteele@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 18:46:34 +0000
commit3a453fa1f16dfa4168e52790e329148366abb05f (patch)
treea8bbab89ec883a838600e0b63d92fad4361e5dfb /chrome/common
parent173de1be12780200c62bae5c01965d51ac0eaa31 (diff)
downloadchromium_src-3a453fa1f16dfa4168e52790e329148366abb05f.zip
chromium_src-3a453fa1f16dfa4168e52790e329148366abb05f.tar.gz
chromium_src-3a453fa1f16dfa4168e52790e329148366abb05f.tar.bz2
Copy from http://chrome-reviews.prom.corp.google.com/1237 (new gcl changelist model).
Description was: Conditionally include personalization/ code by surrounding the hooks into this module with #ifdef CHROME_PERSONALIZATION in various .h/.cc files. Building with the module requires adding this macro as a preprocessor definition in build/internal/essential.vsprops, and adding it to the VCResourceCompiler tool's command line (using /d). We will try and make this easier in the future. TBR=darin git-svn-id: svn://svn.chromium.org/chrome/trunk/src@955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_switches.cc2
-rw-r--r--chrome/common/chrome_switches.h2
-rw-r--r--chrome/common/notification_types.h4
-rw-r--r--chrome/common/render_messages_internal.h5
4 files changed, 12 insertions, 1 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index c36d710..b329125 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -339,4 +339,6 @@ const wchar_t kUseNewHttp[] = L"new-http";
// Allow loading of the javascript debugger UI from the filesystem.
const wchar_t kJavaScriptDebuggerPath[] = L"javascript-debugger-path";
+const wchar_t kEnableP13n[] = L"enable-p13n";
+
} // namespace switches
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 11ce1bc..7528fae 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -143,6 +143,8 @@ extern const wchar_t kUseNewHttp[];
extern const wchar_t kJavaScriptDebuggerPath[];
+extern const wchar_t kEnableP13n[];
+
} // namespace switches
#endif // CHROME_COMMON_CHROME_SWITCHES_H__
diff --git a/chrome/common/notification_types.h b/chrome/common/notification_types.h
index 4724c0b..1080ffa 100644
--- a/chrome/common/notification_types.h
+++ b/chrome/common/notification_types.h
@@ -473,8 +473,10 @@ enum NotificationType {
// are all source and no details.
NOTIFY_SESSION_END,
- // Count (must be last) ------------------------------------------------------
+ // Personalization -----------------------------------------------------------
+ NOTIFY_PERSONALIZATION,
+ // Count (must be last) ------------------------------------------------------
// Used to determine the number of notification types. Not valid as
// a type parameter when registering for or posting notifications.
NOTIFICATION_TYPE_COUNT
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 841f661..2257551 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -723,6 +723,11 @@ IPC_BEGIN_MESSAGES(ViewHost, 2)
std::string /* message */,
std::string /* args (as a JSON string) */)
+#ifdef CHROME_PERSONALIZATION
+ IPC_MESSAGE_ROUTED2(ViewHostMsg_PersonalizationEvent,
+ std::string, std::string )
+#endif
+
// A renderer sends this to the browser process when it wants to create a
// plugin. The browser will create the plugin process if necessary, and
// will return the channel name on success. On error an empty string is