blob: 77c1177e2d1db1f8af10b4707108f19e7dd9bd08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// 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.
//
// The part of WebRequest implementation that needs to reside on the broker
// side.
#include "ceee/ie/broker/webrequest_api_module.h"
#include "ceee/ie/broker/api_dispatcher.h"
#include "ceee/ie/broker/api_module_util.h"
#include "chrome/browser/extensions/extension_webrequest_api_constants.h"
namespace ext = extension_webrequest_api_constants;
namespace webrequest_api {
void RegisterInvocations(ApiDispatcher* dispatcher) {
// Register the permanent event handler.
dispatcher->RegisterPermanentEventHandler(
ext::kOnBeforeRequest,
api_module_util::ConvertTabIdInDictionary<ext::kTabIdKey>);
}
} // namespace webrequest_api
|