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

Side by Side Diff: chrome/renderer/extensions/app_bindings.h

Issue 8539005: Cleanup: Remove unneeded forward declarations in chrome/renderer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The AppObjectExtension is a v8 extension that creates an object 5 // The AppObjectExtension is a v8 extension that creates an object
6 // at window.chrome.app. This object allows javascript to get details 6 // at window.chrome.app. This object allows javascript to get details
7 // on the app state of the page. 7 // on the app state of the page.
8 // The read-only property app.isInstalled is true if the current page is 8 // The read-only property app.isInstalled is true if the current page is
9 // within the extent of an installed, enabled app. 9 // within the extent of an installed, enabled app.
10 10
11 #ifndef CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_ 11 #ifndef CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_
12 #define CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_ 12 #define CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_
13 #pragma once 13 #pragma once
14 14
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "chrome/renderer/extensions/chrome_v8_extension.h" 16 #include "chrome/renderer/extensions/chrome_v8_extension.h"
17 17
18 class ChromeV8Context; 18 class ChromeV8Context;
19 19
20 namespace WebKit {
21 class WebFrame;
22 }
23
24 // Implements the chrome.app JavaScript object. 20 // Implements the chrome.app JavaScript object.
25 // 21 //
26 // TODO(aa): Add unit testing for this class. 22 // TODO(aa): Add unit testing for this class.
27 class AppBindings : public ChromeV8Extension { 23 class AppBindings : public ChromeV8Extension {
28 public: 24 public:
29 explicit AppBindings(ExtensionDispatcher* dispatcher); 25 explicit AppBindings(ExtensionDispatcher* dispatcher);
30 26
31 protected: 27 protected:
32 virtual ChromeV8ExtensionHandler* CreateHandler( 28 virtual ChromeV8ExtensionHandler* CreateHandler(
33 ChromeV8Context* context) OVERRIDE; 29 ChromeV8Context* context) OVERRIDE;
34 30
35 private: 31 private:
36 DISALLOW_COPY_AND_ASSIGN(AppBindings); 32 DISALLOW_COPY_AND_ASSIGN(AppBindings);
37 }; 33 };
38 34
39 #endif // CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_ 35 #endif // CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.h ('k') | chrome/renderer/extensions/chrome_v8_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698