Chromium Code Reviews| Index: components/web_cache/common/web_cache_messages.h |
| diff --git a/components/web_cache/common/web_cache_messages.h b/components/web_cache/common/web_cache_messages.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8ba17a6d9cb32205ed4c9a23b7db6ad118d2a147 |
| --- /dev/null |
| +++ b/components/web_cache/common/web_cache_messages.h |
| @@ -0,0 +1,23 @@ |
| +// Copyright (c) 2014 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. |
| + |
| +//Multiply-included file, no traditional include guard. |
|
James Cook
2014/09/05 16:53:18
nit: space after //
Xi Han
2014/09/05 19:39:25
Done.
|
| +#include "ipc/ipc_message_macros.h" |
| +#include "ipc/ipc_message_utils.h" |
| + |
| +#define IPC_MESSAGE_START WebCacheMsgStart |
| + |
| +//----------------------------------------------------------------------------- |
| +// RenderView messages |
| +// These are messages sent from the browser to the renderer process. |
| + |
| +// Tells the renderer to set its maximum cache size to the supplied value. |
| +IPC_MESSAGE_CONTROL3(WebCacheMsg_SetCacheCapacities, |
| + size_t /* min_dead_capacity */, |
| + size_t /* max_dead_capacity */, |
| + size_t /* capacity */) |
| + |
| +// Tells the renderer to clear the cache. |
| +IPC_MESSAGE_CONTROL1(WebCacheMsg_ClearCache, |
| + bool /* on_navigation */) |