webengine/widgetengine/inc/WidgetJSObjectProtector.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 Aug 2009 07:44:59 +0300
changeset 16 a359256acfc6
parent 13 10e98eab6f85
permissions -rw-r--r--
Revision: 200929 Kit: 200935
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
     1
/*
16
a359256acfc6 Revision: 200929
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 13
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
13
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
     3
* All rights reserved.
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
     8
*
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
     9
* Initial Contributors:
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    11
*
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    12
* Contributors:
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    13
*
16
a359256acfc6 Revision: 200929
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents: 13
diff changeset
    14
* Description:  Interface MJSObjectProtector
13
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    15
*
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    16
*/
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    17
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    18
#ifndef __WIDGETJSOBJECTPROTECTOR_H__
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    19
#define __WIDGETJSOBJECTPROTECTOR_H__
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    20
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    21
namespace KJS {
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    22
	class JSValue;
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    23
}
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    24
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    25
class MJSObjectProtector
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    26
{
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    27
public:
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    28
	virtual void Protect(KJS::JSValue*) = 0;
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    29
	virtual void Unprotect(KJS::JSValue*) = 0;
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    30
};
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    31
10e98eab6f85 Revision: 200919
Pat Downey <patrick.downey@nokia.com>
parents:
diff changeset
    32
#endif // !__WIDGETJSOBJECTPROTECTOR_H__