invalidate_type.h revision 03b57e008b61dfcb1fbad3aea950ae0e001748b0
1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_PUBLIC_BROWSER_INVALIDATE_TYPE_H_
6#define CONTENT_PUBLIC_BROWSER_INVALIDATE_TYPE_H_
7
8namespace content {
9
10// Flags passed to the WebContentsDelegate.NavigationStateChanged to tell it
11// what has changed. Combine them to update more than one thing.
12enum InvalidateTypes {
13  INVALIDATE_TYPE_URL           = 1 << 0,  // The URL has changed.
14  INVALIDATE_TYPE_TAB           = 1 << 1,  // The favicon, app icon, or crashed
15                                           // state changed.
16  INVALIDATE_TYPE_LOAD          = 1 << 2,  // The loading state has changed.
17  INVALIDATE_TYPE_TITLE         = 1 << 3,  // The title changed.
18
19  INVALIDATE_TYPE_ALL           = (1 << 4) - 1,
20};
21
22}
23
24#endif  // CONTENT_PUBLIC_BROWSER_INVALIDATE_TYPE_H_
25