What's new? | Help | Directory | Sign in
Google
             
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2007, Google Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// 3. Neither the name of Google Inc. nor the names of its contributors may be
// used to endorse or promote products derived from this software without
// specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifndef GEARS_BASE_NPAPI_MODULE_H__
#define GEARS_BASE_NPAPI_MODULE_H__

#include "gears/base/common/string16.h"
#include "gears/base/common/js_types.h"
#include "gears/base/common/thread_locals.h"

extern const ThreadLocals::Slot kNPNFuncsKey;

#ifdef OS_ANDROID
extern const ThreadLocals::Slot kNPPInstance;
#endif

void AllowNPInit(bool allow);

// Called when the given instance is being destroyed. Implemented in
// js_runner_np.cc.
void NotifyNPInstanceDestroyed(NPP instance);

#endif // GEARS_BASE_NPAPI_MODULE_H__
Show details Hide details

Change log

r2191 by gears.daemon on Jun 30, 2008   Diff
[Author: nicolasroard]

Html Dialog implementation

PRESUBMIT=passed
R=andreip,jripley,cprince,kennyguy
CC=gears-internal
APPROVED=kennyguy
DELTA=284  (279 added, 0 deleted, 5
changed)
OCL=7556647
SCL=7580273
Go to: 
Project members, sign in to write a code review

Older revisions

r2117 by gears.daemon on Jun 25, 2008   Diff
[Author: mpcomplete]

ThreadLocals optimizations:
- Change the key from a string to an
int.
...
r1458 by gears.daemon on Apr 23, 2008   Diff
[Author: mpcomplete]

Change the way we send out
JSEVENT_UNLOAD in NPAPI so that it
happens when the NPAPI instance is
...
r1438 by gears.daemon on Apr 21, 2008   Diff
[Author: michaeln]

Encapsulate LocalServer update rate
limiting logic in UpdateTask class

...
All revisions of this file

File info

Size: 2018 bytes, 45 lines