diff options
author | initial.commit@chromium.org <initial.commit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-02 02:14:31 +0000 |
---|---|---|
committer | initial.commit@chromium.org <initial.commit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-02 02:14:31 +0000 |
commit | 5a7bdf208c28c210b39cff63d1cf91302b02821b (patch) | |
tree | 5ff484561562f78b29d2670168a9e3b40b48dcab /ceee/ie/broker/infobar_api_module.h | |
parent | 26a54a5e0f4603c8fda2fe51789d331125993c9a (diff) | |
download | chromium_src-5a7bdf208c28c210b39cff63d1cf91302b02821b.zip chromium_src-5a7bdf208c28c210b39cff63d1cf91302b02821b.tar.gz chromium_src-5a7bdf208c28c210b39cff63d1cf91302b02821b.tar.bz2 |
Checking in the initial version of CEEE (Chrome Extensions Execution
Environment), an optional feature of Chrome Frame that acts as an
adapter layer for a subset of the Chrome Extension APIs. This enables
extensions that stick to the supported subset of APIs to work in the
context of Chrome Frame with minimal or sometimes no changes.
See http://www.chromium.org/developers/design-documents/ceee for an
overview of the design of CEEE.
TEST=unit tests (run ceee/smoke_tests.bat as an administrator on Windows)
BUG=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64712 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ceee/ie/broker/infobar_api_module.h')
-rw-r--r-- | ceee/ie/broker/infobar_api_module.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ceee/ie/broker/infobar_api_module.h b/ceee/ie/broker/infobar_api_module.h new file mode 100644 index 0000000..53b3f65 --- /dev/null +++ b/ceee/ie/broker/infobar_api_module.h @@ -0,0 +1,43 @@ +// Copyright (c) 2010 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. +// +// Infobar API implementation. + +#ifndef CEEE_IE_BROKER_INFOBAR_API_MODULE_H_ +#define CEEE_IE_BROKER_INFOBAR_API_MODULE_H_ + +#include <string> + +#include "ceee/ie/broker/api_dispatcher.h" +#include "ceee/ie/broker/common_api_module.h" + +namespace infobar_api { + +class InfobarApiResult; +typedef ApiResultCreator<InfobarApiResult> InfobarApiResultCreator; + +// Registers all Infobar API invocations with the given dispatcher. +void RegisterInvocations(ApiDispatcher* dispatcher); + +class InfobarApiResult : public common_api::CommonApiResult { + public: + explicit InfobarApiResult(int request_id) + : common_api::CommonApiResult(request_id) {} +}; + +typedef IterativeApiResult<InfobarApiResult> IterativeInfobarApiResult; + +class ShowInfoBar : public InfobarApiResultCreator { + public: + virtual void Execute(const ListValue& args, int request_id); + // We need to wait for the infobar browser ready event to complete the + // result response. + static HRESULT ContinueExecution(const std::string& input_args, + ApiDispatcher::InvocationResult* user_data, + ApiDispatcher* dispatcher); +}; + +} // namespace infobar_api + +#endif // CEEE_IE_BROKER_INFOBAR_API_MODULE_H_ |