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

Unified Diff: chrome/common/render_messages_params.h

Issue 6683066: Remove render_messages_params files since they're not needed anymore. I moved the search provide... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/render_messages_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_params.h
===================================================================
--- chrome/common/render_messages_params.h (revision 79639)
+++ chrome/common/render_messages_params.h (working copy)
@@ -1,120 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
-#define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
-#pragma once
-
-#include <string>
-
-#include "ipc/ipc_param_traits.h"
-
-// The type of OSDD that the renderer is giving to the browser.
-struct ViewHostMsg_PageHasOSDD_Type {
- enum Type {
- // The Open Search Description URL was detected automatically.
- AUTODETECTED_PROVIDER,
-
- // The Open Search Description URL was given by Javascript.
- EXPLICIT_PROVIDER,
-
- // The Open Search Description URL was given by Javascript to be the new
- // default search engine.
- EXPLICIT_DEFAULT_PROVIDER
- };
-
- Type type;
-
- ViewHostMsg_PageHasOSDD_Type() : type(AUTODETECTED_PROVIDER) {
- }
-
- explicit ViewHostMsg_PageHasOSDD_Type(Type t)
- : type(t) {
- }
-
- static ViewHostMsg_PageHasOSDD_Type Autodetected() {
- return ViewHostMsg_PageHasOSDD_Type(AUTODETECTED_PROVIDER);
- }
-
- static ViewHostMsg_PageHasOSDD_Type Explicit() {
- return ViewHostMsg_PageHasOSDD_Type(EXPLICIT_PROVIDER);
- }
-
- static ViewHostMsg_PageHasOSDD_Type ExplicitDefault() {
- return ViewHostMsg_PageHasOSDD_Type(EXPLICIT_DEFAULT_PROVIDER);
- }
-};
-
-// The install state of the search provider (not installed, installed, default).
-struct ViewHostMsg_GetSearchProviderInstallState_Params {
- enum State {
- // Equates to an access denied error.
- DENIED = -1,
-
- // DON'T CHANGE THE VALUES BELOW.
- // All of the following values are manidated by the
- // spec for window.external.IsSearchProviderInstalled.
-
- // The search provider is not installed.
- NOT_INSTALLED = 0,
-
- // The search provider is in the user's set but is not
- INSTALLED_BUT_NOT_DEFAULT = 1,
-
- // The search provider is set as the user's default.
- INSTALLED_AS_DEFAULT = 2
- };
- State state;
-
- ViewHostMsg_GetSearchProviderInstallState_Params()
- : state(DENIED) {
- }
-
- explicit ViewHostMsg_GetSearchProviderInstallState_Params(State s)
- : state(s) {
- }
-
- static ViewHostMsg_GetSearchProviderInstallState_Params Denied() {
- return ViewHostMsg_GetSearchProviderInstallState_Params(DENIED);
- }
-
- static ViewHostMsg_GetSearchProviderInstallState_Params NotInstalled() {
- return ViewHostMsg_GetSearchProviderInstallState_Params(NOT_INSTALLED);
- }
-
- static ViewHostMsg_GetSearchProviderInstallState_Params
- InstallButNotDefault() {
- return ViewHostMsg_GetSearchProviderInstallState_Params(
- INSTALLED_BUT_NOT_DEFAULT);
- }
-
- static ViewHostMsg_GetSearchProviderInstallState_Params InstalledAsDefault() {
- return ViewHostMsg_GetSearchProviderInstallState_Params(
- INSTALLED_AS_DEFAULT);
- }
-};
-
-namespace IPC {
-
-class Message;
-
-template <>
-struct ParamTraits<ViewHostMsg_PageHasOSDD_Type> {
- typedef ViewHostMsg_PageHasOSDD_Type param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct ParamTraits<ViewHostMsg_GetSearchProviderInstallState_Params> {
- typedef ViewHostMsg_GetSearchProviderInstallState_Params param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-} // namespace IPC
-
-#endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/render_messages_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698